Browse code

Allows to set mime-type (ie content-type) also for remote copies also

Florent Viard authored on 2020/04/14 12:05:38
Showing 1 changed files
... ...
@@ -880,6 +880,9 @@ class S3(object):
880 880
         if extra_headers:
881 881
             headers.update(extra_headers)
882 882
 
883
+        if self.config.mime_type:
884
+            headers["content-type"] = self.config.mime_type
885
+
883 886
         headers['x-amz-metadata-directive'] = "COPY"
884 887
 
885 888
         if multipart: