Revert "RFC1123 is wrong protocol format for AWS"

This reverts commit c7b1f8ded8.
master
Harshavardhana 10 years ago
parent 54b87b483a
commit ba85ed7566
  1. 7
      pkg/api/minioapi/headers.go

@ -22,6 +22,7 @@ import (
"encoding/xml" "encoding/xml"
"net/http" "net/http"
"strconv" "strconv"
"time"
mstorage "github.com/minio-io/minio/pkg/storage" mstorage "github.com/minio-io/minio/pkg/storage"
) )
@ -55,13 +56,9 @@ func writeErrorResponse(w http.ResponseWriter, response interface{}, acceptsType
return bytesBuffer.Bytes() return bytesBuffer.Bytes()
} }
const (
sendFormat = "2006-01-02T15:04:05.000Z"
)
// Write object header // Write object header
func writeObjectHeaders(w http.ResponseWriter, metadata mstorage.ObjectMetadata) { func writeObjectHeaders(w http.ResponseWriter, metadata mstorage.ObjectMetadata) {
lastModified := metadata.Created.Format(sendFormat) lastModified := metadata.Created.Format(time.RFC1123)
// common headers // common headers
writeCommonHeaders(w, metadata.ContentType) writeCommonHeaders(w, metadata.ContentType)
w.Header().Set("ETag", metadata.ETag) w.Header().Set("ETag", metadata.ETag)

Loading…
Cancel
Save