mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
api: Implement support for additional request headers.
Now GetObject and HeadObject both support - If-Modified-Since, If-Unmodified-Since - If-Match, If-None-Match request headers. These headers are used to further handle the responses for GetObject and HeadObject API. Fixes #1098
This commit is contained in:
@@ -76,7 +76,7 @@ func setObjectHeaders(w http.ResponseWriter, metadata fs.ObjectMetadata, content
|
||||
setCommonHeaders(w)
|
||||
}
|
||||
// set object headers
|
||||
lastModified := metadata.LastModified.Format(http.TimeFormat)
|
||||
lastModified := metadata.LastModified.UTC().Format(http.TimeFormat)
|
||||
// object related headers
|
||||
w.Header().Set("Content-Type", metadata.ContentType)
|
||||
if metadata.MD5 != "" {
|
||||
|
||||
Reference in New Issue
Block a user