Merge pull request #75 from roman-khimov/fix-last-modified-header

downloader: fix Last-Modified header
This commit is contained in:
Kirillov Denis 2021-06-29 13:01:10 +03:00 committed by GitHub
commit cca416ad75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}