mirror of https://github.com/django/django.git
Fixed #28081 -- Stopped setting Content-Length=0 in conditional_content_removal() per RFC 7230.
This commit is contained in:
parent
837259a63f
commit
3db84b5526
1
AUTHORS
1
AUTHORS
|
@ -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>
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue