From ba85ed75662ec5bcd9c53a4b9bce00289d5de2f1 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 8 Mar 2015 03:06:23 -0700 Subject: [PATCH] Revert "RFC1123 is wrong protocol format for AWS" This reverts commit c7b1f8ded8191e5a63d4e4a561a2da16b5eb1df7. --- pkg/api/minioapi/headers.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/api/minioapi/headers.go b/pkg/api/minioapi/headers.go index be4fa5c60..f6b2c9fc7 100644 --- a/pkg/api/minioapi/headers.go +++ b/pkg/api/minioapi/headers.go @@ -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)