Fix invalid V4 signature on multipart copy requests

This commit is contained in:
Jason Woods 2016-11-13 13:22:00 +00:00 committed by Andrew Gaul
parent efde0ec9de
commit 2492dc60ce

View File

@ -3441,7 +3441,8 @@ int S3fsCurl::CopyMultipartPostRequest(const char* from, const char* to, int par
if(!CreateCurlHandle(true)){
return -1;
}
string urlargs = "?partNumber=" + str(part_num) + "&uploadId=" + upload_id;
string request_uri = "partNumber=" + str(part_num) + "&uploadId=" + upload_id;
string urlargs = "?" + request_uri;
string resource;
string turl;
MakeUrlResource(get_realpath(to).c_str(), resource, turl);
@ -3481,7 +3482,7 @@ int S3fsCurl::CopyMultipartPostRequest(const char* from, const char* to, int par
}
}else{
insertV4Headers("PUT", path, "", "");
insertV4Headers("PUT", path, request_uri, "");
}
// setopt