Skip to content

Commit

Permalink
Add compatibility with Google's 'Brotli' package (urllib3#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans authored and sethmlarson committed Apr 22, 2019
1 parent 8b696e4 commit 4485060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urllib3/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _init_decoder(self):

DECODER_ERROR_CLASSES = (IOError, zlib.error)
if brotli is not None:
DECODER_ERROR_CLASSES += (brotli.Error,)
DECODER_ERROR_CLASSES += (brotli.error,)

def _decode(self, data, decode_content, flush_decoder):
"""
Expand Down

0 comments on commit 4485060

Please sign in to comment.