Skip to content

Commit ba5c4db

Browse files
authored
chore: validate lowercase false
helps if users do not adhere to the capitalized boolean strings.
1 parent c65b50f commit ba5c4db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

myproject/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
SESSION_COOKIE_NAME = 'VVSESS'
5959
SESSION_COOKIE_SAMESITE = 'Lax'
6060

61-
if SECURE_COOKIES == "False":
61+
if SECURE_COOKIES == "False" or SECURE_COOKIES == "false":
6262
# transmit cookies over unencrypted http
6363
SESSION_COOKIE_SECURE = False
6464
CSRF_COOKIE_SECURE = False

0 commit comments

Comments
 (0)