mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
fix: correct parse the tagging error for PostPolicyBucketHandler (#19825)
This commit is contained in:
parent
64baedf5a4
commit
03e3493288
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user