Skip to content

Commit b089f82

Browse files
committed
Fixed gzip data collection for gzip_size_limit=0.
1 parent aa059af commit b089f82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

throxy.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def dump_content(self, content, from_addr, to_addr, direction='sending'):
157157
else:
158158
print "(%d bytes of %s)" % (len(content), repr(self.content_type))
159159
if self.content_encoding == 'gzip':
160-
if self.gzip_data.tell() < options.gzip_size_limit:
160+
if options.gzip_size_limit == 0 or \
161+
self.gzip_data.tell() < options.gzip_size_limit:
161162
self.gzip_data.write(content)
162163
try:
163164
content = self.gunzip()

0 commit comments

Comments
 (0)