Commits

Eric Buehl  committed 5f1c9db

guess content-type for streaming the same way that _save() does

  • Participants
  • Parent commits e643ba6

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

             upload_headers = {
                 provider.acl_header: self._storage.default_acl
             }
+            upload_headers.update({'Content-Type': mimetypes.guess_type(self.key.name)[0] or self._storage.key_class.DefaultContentType})
             upload_headers.update(self._storage.headers)
             self._multipart = self._storage.bucket.initiate_multipart_upload(
                 self.key.name,