mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
import_uploads_s3: Fix setting of content-type.
This commit is contained in:
@@ -1248,7 +1248,7 @@ def import_uploads_s3(bucket_name, import_dir, processing_avatars=False):
|
||||
key.set_metadata("realm_id", str(user_profile.realm.id))
|
||||
key.set_metadata("orig_last_modified", record['last_modified'])
|
||||
|
||||
headers = {'Content-Type': key['content_type']}
|
||||
headers = {'Content-Type': record['content_type']}
|
||||
|
||||
key.set_contents_from_filename(os.path.join(import_dir, record['path']), headers=headers)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user