Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

fix zlib_compressobj wbit #361

Merged
merged 1 commit into from
Nov 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/test_http11.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def test_response_transparently_decrypts_gzip(self):
headers = {b'content-encoding': [b'gzip'], b'connection': [b'close']}
r = HTTP11Response(200, 'OK', headers, d, None)

c = zlib_compressobj(wbits=24)
c = zlib_compressobj(wbits=25)
body = c.compress(b'this is test data')
body += c.flush()
d._buffer = BytesIO(body)
Expand Down Expand Up @@ -719,7 +719,7 @@ def test_response_transparently_decrypts_chunked_gzip(self):
}
r = HTTP11Response(200, 'OK', headers, d, None)

c = zlib_compressobj(wbits=24)
c = zlib_compressobj(wbits=25)
body = c.compress(b'this is test data')
body += c.flush()

Expand Down Expand Up @@ -804,7 +804,7 @@ def test_bounded_read_expect_close_with_content_length(self):
def test_compressed_bounded_read_expect_close(self):
headers = {b'connection': [b'close'], b'content-encoding': [b'gzip']}

c = zlib_compressobj(wbits=24)
c = zlib_compressobj(wbits=25)
body = c.compress(b'hello there sir')
body += c.flush()

Expand Down
4 changes: 2 additions & 2 deletions test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ def test_response_transparently_decrypts_gzip(self):
headers = HTTPHeaderMap(
[(':status', '200'), ('content-encoding', 'gzip')]
)
c = zlib_compressobj(wbits=24)
c = zlib_compressobj(wbits=25)
body = c.compress(b'this is test data')
body += c.flush()
resp = HTTP20Response(headers, DummyStream(body))
Expand Down Expand Up @@ -1144,7 +1144,7 @@ def test_read_compressed_frames(self):
headers = HTTPHeaderMap(
[(':status', '200'), ('content-encoding', 'gzip')]
)
c = zlib_compressobj(wbits=24)
c = zlib_compressobj(wbits=25)
body = c.compress(b'this is test data')
body += c.flush()

Expand Down