Adding storage modifications for upcoming fs system

This commit is contained in:
Frederick F. Kautz IV
2015-01-25 17:41:59 -08:00
parent 7005d979bd
commit 49641e3410
6 changed files with 74 additions and 36 deletions

View File

@@ -50,7 +50,7 @@ type Item struct {
Key string
LastModified string
ETag string
Size int
Size int64
StorageClass string
Owner Owner
}

View File

@@ -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")
}