Skip to content

Commit 514b1fa

Browse files
do not have headers with empty values (#1714)
1 parent 7aa4b0e commit 514b1fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api-compose-object.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (c *Client) copyObjectDo(ctx context.Context, srcBucket, srcObject, destBuc
221221
headers.Set(minIOBucketSourceETag, dstOpts.Internal.SourceETag)
222222
}
223223
if dstOpts.Internal.ReplicationRequest {
224-
headers.Set(minIOBucketReplicationRequest, "")
224+
headers.Set(minIOBucketReplicationRequest, "true")
225225
}
226226
if !dstOpts.Internal.LegalholdTimestamp.IsZero() {
227227
headers.Set(minIOBucketReplicationObjectLegalHoldTimestamp, dstOpts.Internal.LegalholdTimestamp.Format(time.RFC3339Nano))

api-put-object.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (opts PutObjectOptions) Header() (header http.Header) {
159159
header.Set(minIOBucketSourceETag, opts.Internal.SourceETag)
160160
}
161161
if opts.Internal.ReplicationRequest {
162-
header.Set(minIOBucketReplicationRequest, "")
162+
header.Set(minIOBucketReplicationRequest, "true")
163163
}
164164
if !opts.Internal.LegalholdTimestamp.IsZero() {
165165
header.Set(minIOBucketReplicationObjectLegalHoldTimestamp, opts.Internal.LegalholdTimestamp.Format(time.RFC3339Nano))

api-remove.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (c *Client) removeObject(ctx context.Context, bucketName, objectName string
166166
headers.Set(amzBucketReplicationStatus, string(opts.Internal.ReplicationStatus))
167167
}
168168
if opts.Internal.ReplicationRequest {
169-
headers.Set(minIOBucketReplicationRequest, "")
169+
headers.Set(minIOBucketReplicationRequest, "true")
170170
}
171171
if opts.ForceDelete {
172172
headers.Set(minIOForceDelete, "true")

0 commit comments

Comments
 (0)