From bdc7f9acba2675f434fa595fd7f91329e18d206f Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 6 Jul 2021 14:07:09 +0300 Subject: [PATCH] [#133] Fix response time format Signed-off-by: Denis Kirillov --- api/handler/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/get.go b/api/handler/get.go index 7958b23e..e8eb73f1 100644 --- a/api/handler/get.go +++ b/api/handler/get.go @@ -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)