Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add decompress param to HttpStream

  • Loading branch information...
commit d2b91c1f201d082d269ef2c4c6db1bbd8312cc84 1 parent 81e3c65
@benoitc authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  http_parser/__init__.py
  2. +2 −2 http_parser/http.py
View
2  http_parser/__init__.py
@@ -3,5 +3,5 @@
# This file is part of http_parser released under the MIT license.
# See the NOTICE for more information.
-version_info = (0, 3, 0)
+version_info = (0, 3, 1)
__version__ = ".".join(map(str, version_info))
View
4 http_parser/http.py
@@ -25,7 +25,7 @@ class HttpStream(object):
create your own.
"""
- def __init__(self, stream, kind=HTTP_BOTH):
+ def __init__(self, stream, kind=HTTP_BOTH, decompress=False):
""" constructor of HttpStream.
:attr stream: an io.RawIOBase object
@@ -33,7 +33,7 @@ def __init__(self, stream, kind=HTTP_BOTH):
1 to parse only responses or 2 if we want to let
the parser detect the type.
"""
- self.parser = HttpParser(kind=kind)
+ self.parser = HttpParser(kind=kind, decompress=decompress)
self.stream = stream
def _check_headers_complete(self):
Please sign in to comment.
Something went wrong with that request. Please try again.