Merge pull request #134 from andrewgaul/mpu-v2

Include Content-Type in complete MPU V2 signature
This commit is contained in:
Takeshi Nakatani 2015-03-01 22:50:54 +09:00
commit 6b6567ec9b

View File

@ -2833,7 +2833,7 @@ int S3fsCurl::CompleteMultipartPostRequest(const char* tpath, string& upload_id,
requestHeaders = curl_slist_sort_insert(requestHeaders, "Content-Type", contype.c_str());
if(!S3fsCurl::IsPublicBucket()){
string Signature = CalcSignatureV2("POST", "", "", date, resource);
string Signature = CalcSignatureV2("POST", "", contype, date, resource);
requestHeaders = curl_slist_sort_insert(requestHeaders, "Authorization", string("AWS " + AWSAccessKeyId + ":" + Signature).c_str());
}