Martin Panter added the comment:

I suggest to drop the RESET_CONTENT exception. Content-Length: 0 is explicitly 
allowed by <https://tools.ietf.org/html/rfc7231#section-6.3.6> option a), and 
is not very different to the general case IMO. Content-Length was added here to 
help with buggy clients, see Issue 16088.

But while we are here, I think we should avoid Content-Length for 304 Not 
Modified. See <https://tools.ietf.org/html/rfc7230#section-3.3.2>. This is a 
special case a bit like HEAD, where the length would refer to a cached response 
rather than the “error”/explanation message.

IMO this could be treated as a bug fix for 3.5 and 2.7, and no versionchanged 
is necessary. What do you think?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25738>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to