diff --git a/cmd/bucket-handlers.go b/cmd/bucket-handlers.go index bb7200212..60fad18ae 100644 --- a/cmd/bucket-handlers.go +++ b/cmd/bucket-handlers.go @@ -1420,7 +1420,7 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h if formValues.Get(postPolicyBucketTagging) != "" { tags, err := tags.ParseObjectXML(strings.NewReader(formValues.Get(postPolicyBucketTagging))) if err != nil { - writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) + writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedPOSTRequest), r.URL) return } tagsStr := tags.String()