diff options
| author | David Evans <d@evans.io> | 2016-04-26 18:43:34 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-29 10:55:01 -0400 |
| commit | 2fcafd169b5fcf4bb6711ca8aa4d59d80225ec7a (patch) | |
| tree | 7aab4f997b5e2b66bd3fb4f736e7a4bc2db1e29d /django | |
| parent | 9f8941eda4b98044d0bf0fea6bb3ba579d382109 (diff) | |
Fixed #26546 -- Allowed HTTPStatus enum values for HttpResponse.status.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/handlers/wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py index 1f85511f62..3099cfb64f 100644 --- a/django/core/handlers/wsgi.py +++ b/django/core/handlers/wsgi.py @@ -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='')))) |
