From f35fe850c0bedbcf260786469e1f933ceafc5731 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sat, 26 Sep 2020 13:19:52 +0900 Subject: [PATCH] Do not send SSE headers during bucket creation This allows integration tests to pass with use_sse. --- src/curl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/curl.cpp b/src/curl.cpp index a78741e..d3d7b67 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -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