1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #28081 -- Stopped setting Content-Length=0 in conditional_content_removal() per RFC 7230.

This commit is contained in:
João Silva 2017-05-09 19:55:03 +01:00 committed by Tim Graham
parent 837259a63f
commit 3db84b5526
2 changed files with 1 additions and 1 deletions

View File

@ -380,6 +380,7 @@ answer newbie questions, and generally made Django that much better:
Jiri Barton
Joachim Jablon <ewjoachim@gmail.com>
Joao Oliveira <joaoxsouls@gmail.com>
Joao Pedro Silva <j.pedro004@gmail.com>
Joe Heck <http://www.rhonabwy.com/wp/>
Joel Bohman <mail@jbohman.com>
Joel Heenan <joelh-django@planetjoel.com>

View File

@ -99,7 +99,6 @@ def conditional_content_removal(request, response):
response.streaming_content = []
else:
response.content = b''
response['Content-Length'] = '0'
if request.method == 'HEAD':
if response.streaming:
response.streaming_content = []