Commits

Ian Lewis committed d565c4b

Use the DefaultContentType property from the Key class

Comments (0)

Files changed (1)

storages/backends/s3boto.py

     def _save(self, name, content):
         name = self._clean_name(name)
         headers = self.headers
-        content_type = mimetypes.guess_type(name)[0] or "application/x-octet-stream"
-            
+        content_type = mimetypes.guess_type(name)[0] or Key.DefaultContentType            
+
         if self.gzip and content_type in self.gzip_content_types:
             content = self._compress_content(content)
             headers.update({'Content-Encoding': 'gzip'})