aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2021-10-20 19:12:00 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2021-10-20 19:12:00 +0500
commitdc7e525cb983853c81a7e6f8f0e25e3f031a2b02 (patch)
treec0b4a07abedcc8cf14f268a6d855baab47a2cf35
parent0b834600d5f8587990ce53c6c51b9508418bf44b (diff)
downloadseaweedfs-dc7e525cb983853c81a7e6f8f0e25e3f031a2b02.tar.xz
seaweedfs-dc7e525cb983853c81a7e6f8f0e25e3f031a2b02.zip
fix Tagging test
-rw-r--r--weed/s3api/tags.go1
-rw-r--r--weed/s3api/tags_test.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/weed/s3api/tags.go b/weed/s3api/tags.go
index 5cb5f8e47..9c1e91179 100644
--- a/weed/s3api/tags.go
+++ b/weed/s3api/tags.go
@@ -16,6 +16,7 @@ type TagSet struct {
type Tagging struct {
XMLName xml.Name `xml:"Tagging"`
TagSet TagSet `xml:"TagSet"`
+ Xmlns string `xml:"xmlns,attr"`
}
func (t *Tagging) ToTags() map[string]string {
diff --git a/weed/s3api/tags_test.go b/weed/s3api/tags_test.go
index 52adb36c1..d8beb1922 100644
--- a/weed/s3api/tags_test.go
+++ b/weed/s3api/tags_test.go
@@ -32,6 +32,7 @@ func TestXMLUnmarshall(t *testing.T) {
func TestXMLMarshall(t *testing.T) {
tags := &Tagging{
+ Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
TagSet: TagSet{
[]Tag{
{