Skip to content

Commit

Permalink
Removed metadata from PutObjectPart calls (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefvel authored and deekoder committed Jan 21, 2019
1 parent 8dc4221 commit fb2e802
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/minio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,11 @@ export class Client {
}
var upload = (query, stream, length, sha256sum, md5sum, cb) => {
var method = 'PUT'
let headers = Object.assign({}, metaData, {'Content-Length': length})
let headers = {'Content-Length': length}

if (!multipart) {
headers = Object.assign({}, metaData, headers)
}

if (!this.enableSHA256) headers['Content-MD5'] = md5sum
this.makeRequestStream({method, bucketName, objectName, query, headers},
Expand Down

0 comments on commit fb2e802

Please sign in to comment.