Fix Tagging XML Unmarshalling (#8977)

AWS S3 doesn't strictly enforce the presence of URL in tagging XML.
This PR updates MinIO to behave similarly.

Fixes #8976
This commit is contained in:
Nitish Tiwari 2020-02-12 04:05:33 +05:30 committed by GitHub
parent 63be4709b7
commit 33767266e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ var (
// Tagging - object tagging interface // Tagging - object tagging interface
type Tagging struct { type Tagging struct {
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ Tagging"` XMLName xml.Name `xml:"Tagging"`
TagSet TagSet `xml:"TagSet"` TagSet TagSet `xml:"TagSet"`
} }