diff --git a/api/handler/tagging.go b/api/handler/tagging.go index 0436a82ac..278436588 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)