Skip to content

Commit

Permalink
res is never defined.
Browse files Browse the repository at this point in the history
fix #45
  • Loading branch information
benoitc committed Mar 20, 2014
1 parent b096764 commit 78bcb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_parser/pyparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def _parse_body(self):
try:
body_part = self.__decompress_obj.decompress(body_part)
except zlib.error:
res.decompressobj = zlib.decompressobj(-zlib.MAX_WBITS)
self.__decompress_obj.decompressobj = zlib.decompressobj(-zlib.MAX_WBITS)
body_part = self.__decompress_obj.decompress(body_part)
self.__decompress_first_try = False

Expand Down

0 comments on commit 78bcb29

Please sign in to comment.