From c516c74c516eeb3462e9d5d8e0ee80a14bbeddfc Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 23 Jan 2015 13:15:57 -0800 Subject: [PATCH] Fix content-type in GetObjects --- pkg/webapi/minioapi/minioapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webapi/minioapi/minioapi.go b/pkg/webapi/minioapi/minioapi.go index 020a2b78e..cb006aa94 100644 --- a/pkg/webapi/minioapi/minioapi.go +++ b/pkg/webapi/minioapi/minioapi.go @@ -175,7 +175,7 @@ func (server *minioApi) listObjectsHandler(w http.ResponseWriter, req *http.Requ var bytesBuffer bytes.Buffer var encoder encoder if contentType == xmlType { - w.Header().Set("Content-Type", `xml version="1.0" encoding="UTF-8"`) + w.Header().Set("Content-Type", "application/xml") encoder = xml.NewEncoder(&bytesBuffer) } else if contentType == jsonType { w.Header().Set("Content-Type", "application/json")