Commits

zbyte64 committed 3d21df8

Fix for python 2.7

  • Participants
  • Parent commits 85e72f4

Comments (0)

Files changed (1)

storages/backends/s3.py

         self.headers.update({
             'x-amz-acl': self.acl, 
             'Content-Type': content_type,
-            'Content-Length' : len(content),
+            'Content-Length' : str(len(content)),
         })
         response = self.connection.put(self.bucket, name, content, self.headers)
         if response.http_response.status not in (200, 206):