David Larlet  committed 592b267

S3 Boto: Related to #5, set the content type in headers, thanks to @wimleers for the original patch and @richleland for the final suggestion.

  • Participants
  • Parent commits f1b973d
  • Branches default

Comments (0)

Files changed (1)

File backends/

         return S3BotoStorageFile(name, mode, self)
     def _save(self, name, content):
+        headers = self.headers
+        headers['Content-Type'] = content.content_type
         k = self.bucket.get_key(name)
         if not k:
             k = self.bucket.new_key(name)
-        k.set_contents_from_file(content, headers=self.headers, policy=self.acl)
+        k.set_contents_from_file(content, headers=headers, policy=self.acl)
         return name
     def delete(self, name):