projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a609f72
)
may have multiple encoding values
author
Kenneth Reitz
<me@kennethreitz.com>
Sat, 20 Aug 2011 23:44:24 +0000
(19:44 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sat, 20 Aug 2011 23:44:24 +0000
(19:44 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index d348314954f8118dc1196c5707b149fdc1ae7432..8692bbb9742eb7e265f2c62083ac079c7fab4bc2 100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-446,7
+446,7
@@
class Response(object):
self._content = self.read()
# Decode GZip'd content.
- if
self.headers.get('content-encoding', '') == 'gzip'
:
+ if
'gzip' in self.headers.get('content-encoding', '')
:
try:
self._content = zlib.decompress(self._content, 16+zlib.MAX_WBITS)
except zlib.error: