From dee182a0c13a534b0f07a40602625a106d63ac9a Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 29 Jun 2021 12:25:14 +0300 Subject: [PATCH] downloader: fix Last-Modified header It should never ever be sent in local time, instead of Last-Modified: Tue, 29 Jun 2021 12:02:57 MSK one should receive Last-Modified: Tue, 29 Jun 2021 09:02:57 GMT Signed-off-by: Roman Khimov --- downloader/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader/download.go b/downloader/download.go index 079244a..1272777 100644 --- a/downloader/download.go +++ b/downloader/download.go @@ -186,7 +186,7 @@ func (r *request) receiveFile(clnt client.Object, objectAddress *object.Address) continue } r.Response.Header.Set("Last-Modified", - time.Unix(value, 0).Format(time.RFC1123)) + time.Unix(value, 0).UTC().Format(http.TimeFormat)) case object.AttributeContentType: contentType = val }