Skip to content

Commit

Permalink
Support sending precalculated Content-MD5 header
Browse files Browse the repository at this point in the history
We already have the MD5 of the content and want to send along the Content-MD5 header without minio-go having to recalculate the hash. With this PR we can set `SendContentMd5: false` and send our hash as `UserMetadata`.

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Aug 4, 2023
1 parent c0ea248 commit fe85f9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ var supportedHeaders = map[string]bool{
"content-encoding": true,
"content-disposition": true,
"content-language": true,
"content-md5": true,
"x-amz-website-redirect-location": true,
"x-amz-object-lock-mode": true,
"x-amz-metadata-directive": true,
Expand Down

0 comments on commit fe85f9d

Please sign in to comment.