summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/http/response.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/http/response.py b/django/http/response.py
index ed5c14eef8..94d14ddb54 100644
--- a/django/http/response.py
+++ b/django/http/response.py
@@ -190,6 +190,8 @@ class HttpResponseBase(six.Iterator):
max_age = max(0, delta.days * 86400 + delta.seconds)
else:
self.cookies[key]['expires'] = expires
+ else:
+ self.cookies[key]['expires'] = ''
if max_age is not None:
self.cookies[key]['max-age'] = max_age
# IE requires expires, so set it if hasn't been already.