Merge pull request #139 from KirillovDenis/bugfix/133-wrong_time_format

[#133] Fix response time format
This commit is contained in:
Alex Vanin 2021-07-06 15:03:15 +03:00 committed by GitHub
commit 2956f34fb7

View file

@ -64,7 +64,7 @@ func writeHeaders(h http.Header, info *layer.ObjectInfo) {
if len(info.ContentType) > 0 {
h.Set(api.ContentType, info.ContentType)
}
h.Set(api.LastModified, info.Created.Format(time.RFC3339))
h.Set(api.LastModified, info.Created.UTC().Format(http.TimeFormat))
h.Set(api.ContentLength, strconv.FormatInt(info.Size, 10))
h.Set(api.ETag, info.HashSum)