mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
Fix content-type in GetObjects
This commit is contained in:
parent
aa2a714d50
commit
c516c74c51
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user