summaryrefslogtreecommitdiff
path: root/django/http/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/http/utils.py')
-rw-r--r--django/http/utils.py4
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