Martin Panter added the comment:

I think the patch is indeed a bit short, for instannce it looks like calling 
read() without a size limit could bypass the decoding.

Also, I wonder if Content-Encoding handling is better done at a higher level. 
What if someone wants to download a *.tar.gz file? They may not expect the tar 
file to be transparently decompressed. And I suspect this would blow up if you 
tried a partial range request.

Transfer-Encoding is meant to be the proper way to transparently compress HTTP 
messages at a low level, but it doesn’t seem to be used as much in the real 
world.

----------

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

Reply via email to