Skip to content
Myr

may have multiple encoding values

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent a609f72 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
444 unmodified lines
445 # Read the contents.446 self._content = self.read()447448 # Decode GZip'd content.449 if self.headers.get('content-encoding', '') == 'gzip':449 if 'gzip' in self.headers.get('content-encoding', ''):450 try:451 self._content = zlib.decompress(self._content, 16+zlib.MAX_WBITS)452 except zlib.error:453 pass
199 unmodified lines