forked from TrueCloudLab/frostfs-http-gw
Merge pull request #75 from roman-khimov/fix-last-modified-header
downloader: fix Last-Modified header
This commit is contained in:
commit
cca416ad75
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ func (r *request) receiveFile(clnt client.Object, objectAddress *object.Address)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
r.Response.Header.Set("Last-Modified",
|
r.Response.Header.Set("Last-Modified",
|
||||||
time.Unix(value, 0).Format(time.RFC1123))
|
time.Unix(value, 0).UTC().Format(http.TimeFormat))
|
||||||
case object.AttributeContentType:
|
case object.AttributeContentType:
|
||||||
contentType = val
|
contentType = val
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue