mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -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) != "" {
|
if formValues.Get(postPolicyBucketTagging) != "" {
|
||||||
tags, err := tags.ParseObjectXML(strings.NewReader(formValues.Get(postPolicyBucketTagging)))
|
tags, err := tags.ParseObjectXML(strings.NewReader(formValues.Get(postPolicyBucketTagging)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
|
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedPOSTRequest), r.URL)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
tagsStr := tags.String()
|
tagsStr := tags.String()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user