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