mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
Adding storage modifications for upcoming fs system
This commit is contained in:
@@ -50,7 +50,7 @@ type Item struct {
|
||||
Key string
|
||||
LastModified string
|
||||
ETag string
|
||||
Size int
|
||||
Size int64
|
||||
StorageClass string
|
||||
Owner Owner
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ func writeObjectHeaders(w http.ResponseWriter, metadata mstorage.ObjectMetadata)
|
||||
w.Header().Set("ETag", metadata.ETag)
|
||||
w.Header().Set("Server", "Minio")
|
||||
w.Header().Set("Last-Modified", lastModified)
|
||||
w.Header().Set("Content-Length", strconv.Itoa(metadata.Size))
|
||||
w.Header().Set("Content-Length", strconv.FormatInt(metadata.Size, 10))
|
||||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.Header().Set("Connection", "close")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user