From 30bd5e2669d7e3659cbafe8bbfc6c71f06c3d7c8 Mon Sep 17 00:00:00 2001 From: Sveinn Date: Tue, 16 Jan 2024 00:11:06 +0000 Subject: [PATCH] adding a missing return case to fix GetObjectTagging (#18793) --- cmd/object-handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index 799e6b722..b0794af3d 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -3318,6 +3318,9 @@ func (api objectAPIHandlers) GetObjectTaggingHandler(w http.ResponseWriter, r *h } // overlay tags from peer site. ot = tags w.Header()[xhttp.MinIOTaggingProxied] = []string{"true"} // indicate that the request was proxied. + } else { + writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) + return } } else { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)