Fixed a bug about head request(copy) for SSE - issue#286

This commit is contained in:
Takeshi Nakatani 2015-11-01 14:05:47 +00:00
parent 2ef7f497f6
commit 001206f7c1

View File

@ -2793,7 +2793,6 @@ int S3fsCurl::PreMultipartPostRequest(const char* tpath, headers_t& meta, string
}else if(key == "x-amz-server-side-encryption-customer-key-md5"){
// Only copy mode.
if(is_copy){
string tmpvalue("");
if(!AddSseRequestHead(SSE_C, value, true, true) || !AddSseRequestHead(SSE_C, value, true, false)){
S3FS_PRN_WARN("Failed to insert SSE-C header.");
}