mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
Merge pull request #272 from harshavardhana/pr_out_revert_rfc1123_is_wrong_protocol_format_for_aws
This commit is contained in:
commit
44f02058ea
@ -22,6 +22,7 @@ import (
|
||||
"encoding/xml"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
mstorage "github.com/minio-io/minio/pkg/storage"
|
||||
)
|
||||
@ -55,13 +56,9 @@ func writeErrorResponse(w http.ResponseWriter, response interface{}, acceptsType
|
||||
return bytesBuffer.Bytes()
|
||||
}
|
||||
|
||||
const (
|
||||
sendFormat = "2006-01-02T15:04:05.000Z"
|
||||
)
|
||||
|
||||
// Write object header
|
||||
func writeObjectHeaders(w http.ResponseWriter, metadata mstorage.ObjectMetadata) {
|
||||
lastModified := metadata.Created.Format(sendFormat)
|
||||
lastModified := metadata.Created.Format(time.RFC1123)
|
||||
// common headers
|
||||
writeCommonHeaders(w, metadata.ContentType)
|
||||
w.Header().Set("ETag", metadata.ETag)
|
||||
|
Loading…
Reference in New Issue
Block a user