Commits

David Larlet committed 51e369b Merge

Merged in gavinwahl/django-storages (pull request #46)

Comments (0)

Files changed (1)

storages/backends/s3boto.py

                 self._is_dirty = False
                 self.key.get_contents_to_file(self._file)
                 self._file.seek(0)
-            content_type = mimetypes.guess_type(self.name)[0] or Key.DefaultContentType
-            if (self._storage.gzip and
-                    content_type in self._storage.gzip_content_types):
+            if self._storage.gzip and self.key.content_encoding == 'gzip':
                 self._file = GzipFile(mode=self._mode, fileobj=self._file)
         return self._file