fix: save ModTime properly in disk cache (#11522)

fix #11414
This commit is contained in:
Poorna Krishnamoorthy
2021-02-11 19:25:47 -08:00
committed by GitHub
parent 2a7b123895
commit 93fd248b52
4 changed files with 11 additions and 7 deletions

View File

@@ -200,6 +200,7 @@ func getMetadata(objInfo ObjectInfo) map[string]string {
if !objInfo.Expires.Equal(timeSentinel) {
metadata["expires"] = objInfo.Expires.Format(http.TimeFormat)
}
metadata["last-modified"] = objInfo.ModTime.Format(http.TimeFormat)
for k, v := range objInfo.UserDefined {
metadata[k] = v
}