Refactor stream_decode_gzip and _deflate into one function, stream_decompress.
authorChase Sterling <chase.sterling@gmail.com>
Sat, 31 Dec 2011 03:18:08 +0000 (22:18 -0500)
committerChase Sterling <chase.sterling@gmail.com>
Sat, 31 Dec 2011 03:18:08 +0000 (22:18 -0500)
commit9c6ffc530319d3b6d75bb160267d76f0224b0743
tree46f76dc24db4e0cd140669d3b006423cfa603e28
parentf80984f37701003f0f06d86902a60cfd82fa85ef
Refactor stream_decode_gzip and _deflate into one function, stream_decompress.
stream_decompress will now iterate over the raw data if there is a problem with decompression
Remove gzip decoding from Response.content, as urllib3 was doing it anyway.
requests/models.py
requests/utils.py