mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Merge pull request #644 from ggtakec/master
Fixed with unnecessary equal in POST uploads url argment - #643
This commit is contained in:
commit
c5c110137b
@ -3030,9 +3030,6 @@ int S3fsCurl::PreMultipartPostRequest(const char* tpath, headers_t& meta, string
|
|||||||
MakeUrlResource(get_realpath(tpath).c_str(), resource, turl);
|
MakeUrlResource(get_realpath(tpath).c_str(), resource, turl);
|
||||||
|
|
||||||
string query_string = "uploads";
|
string query_string = "uploads";
|
||||||
if(S3fsCurl::is_sigv4){
|
|
||||||
query_string += "=";
|
|
||||||
}
|
|
||||||
turl += "?" + query_string;
|
turl += "?" + query_string;
|
||||||
resource += "?" + query_string;
|
resource += "?" + query_string;
|
||||||
url = prepare_url(turl.c_str());
|
url = prepare_url(turl.c_str());
|
||||||
@ -3106,7 +3103,7 @@ int S3fsCurl::PreMultipartPostRequest(const char* tpath, headers_t& meta, string
|
|||||||
requestHeaders = curl_slist_sort_insert(requestHeaders, "Accept", NULL);
|
requestHeaders = curl_slist_sort_insert(requestHeaders, "Accept", NULL);
|
||||||
requestHeaders = curl_slist_sort_insert(requestHeaders, "Content-Length", NULL);
|
requestHeaders = curl_slist_sort_insert(requestHeaders, "Content-Length", NULL);
|
||||||
requestHeaders = curl_slist_sort_insert(requestHeaders, "Content-Type", contype.c_str());
|
requestHeaders = curl_slist_sort_insert(requestHeaders, "Content-Type", contype.c_str());
|
||||||
insertV4Headers("POST", path, query_string, "");
|
insertV4Headers("POST", path, query_string + "=", ""); // NOTICE : appends "=" to query_string
|
||||||
}
|
}
|
||||||
|
|
||||||
// setopt
|
// setopt
|
||||||
|
Loading…
Reference in New Issue
Block a user