Skip to content

Commit

Permalink
Set SSE headers when checking bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny authored and gaul committed Oct 18, 2023
1 parent d5dd176 commit 2871975
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2871975

Please sign in to comment.