mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-05 12:27:53 +00:00
Fixed issue #101 - mv (rename) does not update the
Content-Type metadata if the file extension changes git-svn-id: http://s3fs.googlecode.com/svn/trunk@208 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
9708cdb629
commit
cb85e65591
@ -1168,6 +1168,9 @@ s3fs_rename(const char *from, const char *to) {
|
||||
|
||||
meta["x-amz-copy-source"] = urlEncode("/"+bucket + from);
|
||||
|
||||
meta["Content-Type"] = lookupMimeType(to);
|
||||
meta["x-amz-metadata-directive"] = "REPLACE";
|
||||
|
||||
int result = put_headers(to, meta);
|
||||
if (result != 0)
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user