From 9d39fb36042b909fab44877bc499d3a85a7520cc Mon Sep 17 00:00:00 2001 From: P R <25353498+BigUstad@users.noreply.github.com> Date: Tue, 26 May 2020 17:32:53 -0700 Subject: [PATCH] add copyobject tagging replace directive for gateway (#9711) --- cmd/object-handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index fe6f090ef..fb373897e 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -1076,6 +1076,9 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL, guessIsBrowserReq(r)) return } + if globalIsGateway { + srcInfo.UserDefined[xhttp.AmzTagDirective] = replaceDirective + } } if objTags != "" {