mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
gzip conflict fix
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ httpbin.filters
|
||||
This module provides response filter decorators.
|
||||
"""
|
||||
|
||||
import gzip
|
||||
import gzip as gzip2
|
||||
import json as simplejson
|
||||
|
||||
from cStringIO import StringIO
|
||||
@@ -66,7 +66,7 @@ def gzip(f, *args, **kwargs):
|
||||
content = data
|
||||
|
||||
gzip_buffer = StringIO()
|
||||
gzip_file = gzip.GzipFile(
|
||||
gzip_file = gzip2.GzipFile(
|
||||
mode='wb',
|
||||
compresslevel=4,
|
||||
fileobj=gzip_buffer
|
||||
|
||||
Reference in New Issue
Block a user