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:
mooredan@suncup.net 2010-10-20 02:54:01 +00:00
parent 9708cdb629
commit cb85e65591

View File

@ -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;