|
|
@ -79,7 +79,9 @@ func setObjectHeaders(w http.ResponseWriter, metadata fs.ObjectMetadata, content |
|
|
|
lastModified := metadata.Created.Format(http.TimeFormat) |
|
|
|
lastModified := metadata.Created.Format(http.TimeFormat) |
|
|
|
// object related headers
|
|
|
|
// object related headers
|
|
|
|
w.Header().Set("Content-Type", "application/octet-stream") |
|
|
|
w.Header().Set("Content-Type", "application/octet-stream") |
|
|
|
|
|
|
|
if metadata.Md5 != "" { |
|
|
|
w.Header().Set("ETag", "\""+metadata.Md5+"\"") |
|
|
|
w.Header().Set("ETag", "\""+metadata.Md5+"\"") |
|
|
|
|
|
|
|
} |
|
|
|
w.Header().Set("Last-Modified", lastModified) |
|
|
|
w.Header().Set("Last-Modified", lastModified) |
|
|
|
|
|
|
|
|
|
|
|
// set content range
|
|
|
|
// set content range
|
|
|
|