Skip to content

Commit 982f5cc

Browse files
committed
Tweaked a patch, removing an unused import.
- Legacy-Id: 18394
1 parent c95ffe4 commit 982f5cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

patch/django-cookie-delete-with-all-settings.patch

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
--- django/http/response.py.orig 2020-08-13 11:16:04.060627793 +0200
1313
+++ django/http/response.py 2020-08-13 11:54:03.482476973 +0200
14-
@@ -210,12 +210,19 @@
14+
@@ -210,12 +210,18 @@
1515
value = signing.get_cookie_signer(salt=key + salt).sign(value)
1616
return self.set_cookie(key, value, **kwargs)
1717

@@ -20,7 +20,6 @@
2020
# Most browsers ignore the Set-Cookie header if the cookie name starts
2121
# with __Host- or __Secure- and the cookie doesn't use the secure flag.
2222
- secure = key.startswith(('__Secure-', '__Host-'))
23-
+ import debug
2423
+ if key in self.cookies:
2524
+ domain = self.cookies[key].get('domain', domain)
2625
+ secure = self.cookies[key].get('secure', secure)

0 commit comments

Comments
 (0)