summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server/gzip_middleware.py
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-08-13 21:50:17 -0400
committerKali Kaneko <kali@leap.se>2017-08-23 01:54:43 -0400
commitcf27200e4731d46a021ca13bd8bc0efb7062a30b (patch)
tree152ad5813466125108d182f41344d5ae66f75009 /src/leap/soledad/server/gzip_middleware.py
parent4a68ed4253f38e11bb85fdb90711145a30839561 (diff)
[bug] use correct StringIO class
Diffstat (limited to 'src/leap/soledad/server/gzip_middleware.py')
-rw-r--r--src/leap/soledad/server/gzip_middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/soledad/server/gzip_middleware.py b/src/leap/soledad/server/gzip_middleware.py
index c77f9f67..e6d73adb 100644
--- a/src/leap/soledad/server/gzip_middleware.py
+++ b/src/leap/soledad/server/gzip_middleware.py
@@ -33,7 +33,7 @@ class GzipMiddleware(object):
if 'gzip' not in environ.get('HTTP_ACCEPT_ENCODING', ''):
return self.app(environ, start_response)
- buffer = StringIO.StringIO()
+ buffer = StringIO()
output = GzipFile(
mode='wb',
compresslevel=self.compresslevel,