Set SSE headers when checking bucket

This commit is contained in:
Jan Stastny 2023-10-18 13:33:22 +02:00 committed by Andrew Gaul
parent d5dd17644d
commit 2871975d1e
1 changed files with 8 additions and 0 deletions

View File

@ -3660,6 +3660,14 @@ int S3fsCurl::CheckBucket(const char* check_path, bool compat_dir)
responseHeaders.clear();
bodydata.clear();
// SSE
if(S3fsCurl::GetSseType() != sse_type_t::SSE_DISABLE){
std::string ssevalue;
if(!AddSseRequestHead(S3fsCurl::GetSseType(), ssevalue, false)){
S3FS_PRN_WARN("Failed to set SSE header, but continue...");
}
}
op = "GET";
type = REQTYPE::CHKBUCKET;