Content type is now passed from minioapi to storage

This commit is contained in:
Frederick F. Kautz IV
2015-02-05 14:05:43 -08:00
parent 833756138d
commit 620435cea6
2 changed files with 54 additions and 7 deletions

View File

@@ -225,7 +225,7 @@ func writeObjectHeaders(w http.ResponseWriter, metadata mstorage.ObjectMetadata)
w.Header().Set("Server", "Minio")
w.Header().Set("Last-Modified", lastModified)
w.Header().Set("Content-Length", strconv.FormatInt(metadata.Size, 10))
w.Header().Set("Content-Type", "text/plain")
w.Header().Set("Content-Type", metadata.ContentType)
w.Header().Set("Connection", "close")
}