Merge pull request #46 from harshavardhana/pr_out_fix_content_type_in_getobjects

This commit is contained in:
Harshavardhana 2015-01-23 13:16:48 -08:00
commit ef3022a6c9
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func (server *minioApi) listObjectsHandler(w http.ResponseWriter, req *http.Requ
var bytesBuffer bytes.Buffer var bytesBuffer bytes.Buffer
var encoder encoder var encoder encoder
if contentType == xmlType { 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) encoder = xml.NewEncoder(&bytesBuffer)
} else if contentType == jsonType { } else if contentType == jsonType {
w.Header().Set("Content-Type", "application/json") w.Header().Set("Content-Type", "application/json")