mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
Adding x-amz-security-token header
This commit is contained in:
parent
967ef4d56b
commit
60d2ac3c7a
@ -2297,6 +2297,12 @@ void S3fsCurl::insertV4Headers(const string &op, const string &path, const strin
|
||||
string auth = "AWS4-HMAC-SHA256 Credential=" + AWSAccessKeyId + "/" + strdate + "/" + endpoint +
|
||||
"/s3/aws4_request, SignedHeaders=" + get_sorted_header_keys(requestHeaders) + ", Signature=" + Signature;
|
||||
requestHeaders = curl_slist_sort_insert(requestHeaders, "Authorization", auth.c_str());
|
||||
|
||||
if (S3fsCurl::is_ecs) {
|
||||
S3FS_PRN_INFO3("Adding x-amz-security-token header");
|
||||
|
||||
requestHeaders = curl_slist_sort_insert(requestHeaders, "x-amz-security-token", S3fsCurl::AWSAccessToken.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user