1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #26546 -- Allowed HTTPStatus enum values for HttpResponse.status.

This commit is contained in:
David Evans
2016-04-26 18:43:34 +01:00
committed by Tim Graham
parent 9f8941eda4
commit 2fcafd169b
4 changed files with 28 additions and 6 deletions

View File

@@ -171,7 +171,7 @@ class WSGIHandler(base.BaseHandler):
response._handler_class = self.__class__
status = '%s %s' % (response.status_code, response.reason_phrase)
status = '%d %s' % (response.status_code, response.reason_phrase)
response_headers = [(str(k), str(v)) for k, v in response.items()]
for c in response.cookies.values():
response_headers.append((str('Set-Cookie'), str(c.output(header=''))))