summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/http/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/response.py b/django/http/response.py
index c0ed93c44e..64ac205087 100644
--- a/django/http/response.py
+++ b/django/http/response.py
@@ -184,7 +184,7 @@ class HttpResponseBase:
else:
self.cookies[key]['expires'] = ''
if max_age is not None:
- self.cookies[key]['max-age'] = max_age
+ self.cookies[key]['max-age'] = int(max_age)
# IE requires expires, so set it if hasn't been already.
if not expires:
self.cookies[key]['expires'] = http_date(time.time() + max_age)