From 1ee1b8bb795c62149f1e6db409e0b94da29dce59 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Fri, 5 Aug 2022 06:19:47 +0400 Subject: [PATCH] [#643] Fix missing const api.QueryVersionID Signed-off-by: Angira Kekteeva --- api/handler/tagging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/tagging.go b/api/handler/tagging.go index 0436a82..2784365 100644 --- a/api/handler/tagging.go +++ b/api/handler/tagging.go @@ -86,7 +86,7 @@ func (h *handler) GetObjectTaggingHandler(w http.ResponseWriter, r *http.Request p := &layer.ObjectVersion{ BktInfo: bktInfo, ObjectName: reqInfo.ObjectName, - VersionID: reqInfo.URL.Query().Get("versionId"), + VersionID: reqInfo.URL.Query().Get(api.QueryVersionID), } versionID, tagSet, err := h.obj.GetObjectTagging(r.Context(), p)