adding a missing return case to fix GetObjectTagging (#18793)

This commit is contained in:
Sveinn 2024-01-16 00:11:06 +00:00 committed by GitHub
parent 38637897ba
commit 30bd5e2669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)