From fa0c8a92cb11edad7547aa1ea15f0ba8cf8b624c Mon Sep 17 00:00:00 2001 From: Carlos Aguilar Date: Fri, 14 Dec 2012 13:55:03 -0600 Subject: [PATCH] Fix but when IS_GZIPPED is True --- storages/backends/s3boto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/storages/backends/s3boto.py b/storages/backends/s3boto.py index f89dc12..ed4de12 100644 --- a/storages/backends/s3boto.py +++ b/storages/backends/s3boto.py @@ -229,6 +229,7 @@ def _compress_content(self, content): zfile.write(content.read()) finally: zfile.close() + zbuf.seek(0) content.file = zbuf content.seek(0) return content