diff options
| author | Łukasz Langa <lukasz@langa.pl> | 2013-05-21 00:41:23 +0200 |
|---|---|---|
| committer | Łukasz Langa <lukasz@langa.pl> | 2013-05-21 01:28:16 +0200 |
| commit | 0594fed9ffd6cf6e10475488934cb02d9263829e (patch) | |
| tree | 0e3f08bb1c8190d477b467e5cdf1dd720eac771f /django/http/utils.py | |
| parent | 4ba1c2e785feecfa7a47aa5336a2b595f086a765 (diff) | |
Fixed #20472: response.content should be bytes on both Python 2 and 3
Diffstat (limited to 'django/http/utils.py')
| -rw-r--r-- | django/http/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/utils.py b/django/http/utils.py index fcb3fecb6c..e13dc4cbb6 100644 --- a/django/http/utils.py +++ b/django/http/utils.py @@ -31,13 +31,13 @@ def conditional_content_removal(request, response): if response.streaming: response.streaming_content = [] else: - response.content = '' + response.content = b'' response['Content-Length'] = '0' if request.method == 'HEAD': if response.streaming: response.streaming_content = [] else: - response.content = '' + response.content = b'' return response |
