Commits

Ian Lewis committed 2b44d79

Copy the headers so that gzip headers aren't added to subsequent save() operations. fixes #75

  • Participants
  • Parent commits 0181134

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

     def _save(self, name, content):
         cleaned_name = self._clean_name(name)
         name = self._normalize_name(cleaned_name)
-        headers = self.headers
+        headers = self.headers.copy()
         content_type = getattr(content,'content_type', mimetypes.guess_type(name)[0] or Key.DefaultContentType)
 
         if self.gzip and content_type in self.gzip_content_types: