Merge pull request #1425 from gaul/create-bucket/sse

Do not send SSE headers during bucket creation
This commit is contained in:
Takeshi Nakatani 2020-09-27 11:34:15 +09:00 committed by GitHub
commit 757f4caee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3098,8 +3098,11 @@ int S3fsCurl::PutRequest(const char* tpath, headers_t& meta, int fd)
}
// SSE
std::string ssevalue;
if(!AddSseRequestHead(S3fsCurl::GetSseType(), ssevalue, false, false)){
S3FS_PRN_WARN("Failed to set SSE header, but continue...");
// do not add SSE for create bucket
if(0 != strcmp(tpath, "/")){
if(!AddSseRequestHead(S3fsCurl::GetSseType(), ssevalue, false, false)){
S3FS_PRN_WARN("Failed to set SSE header, but continue...");
}
}
if(is_use_ahbe){
// set additional header by ahbe conf