Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add decompress param to HttpStream

  • Loading branch information...
commit d2b91c1f201d082d269ef2c4c6db1bbd8312cc84 1 parent 81e3c65
Benoit Chesneau authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  http_parser/__init__.py
  2. +2 2 http_parser/http.py
2  http_parser/__init__.py
@@ -3,5 +3,5 @@
3 3 # This file is part of http_parser released under the MIT license.
4 4 # See the NOTICE for more information.
5 5
6   -version_info = (0, 3, 0)
  6 +version_info = (0, 3, 1)
7 7 __version__ = ".".join(map(str, version_info))
4 http_parser/http.py
@@ -25,7 +25,7 @@ class HttpStream(object):
25 25 create your own.
26 26 """
27 27
28   - def __init__(self, stream, kind=HTTP_BOTH):
  28 + def __init__(self, stream, kind=HTTP_BOTH, decompress=False):
29 29 """ constructor of HttpStream.
30 30
31 31 :attr stream: an io.RawIOBase object
@@ -33,7 +33,7 @@ def __init__(self, stream, kind=HTTP_BOTH):
33 33 1 to parse only responses or 2 if we want to let
34 34 the parser detect the type.
35 35 """
36   - self.parser = HttpParser(kind=kind)
  36 + self.parser = HttpParser(kind=kind, decompress=decompress)
37 37 self.stream = stream
38 38
39 39 def _check_headers_complete(self):

0 comments on commit d2b91c1

Please sign in to comment.
Something went wrong with that request. Please try again.