Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update s3.cc to add Content-MD5 header to V4 S3 api #1522

Open
wants to merge 1 commit into
base: 8.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion storage/innobase/xtrabackup/src/xbcloud/s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ std::string S3_signerV4::build_hashed_canonical_request(

std::string content_sha256 = hex_encode(request.payload().sha256());
request.add_header(AWS_CONTENT_SHA256_HEADER, content_sha256);


std::string content_md5 = base64_encode(request.payload().md5());
request.add_header("Content-MD5", content_md5);

/* canonical URI */
canonical_request << request.path() << "\n";

Expand Down