Add restore-status header for multipart objects (#16508)

This commit is contained in:
Krishnan Parthasarathi authored and GitHub committed 2023-01-31 07:53:45 +05:30
1 parent f713436dd0
commit cea2ca8c8e
3 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -3051,7 +3051,7 @@ func (api objectAPIHandlers) PostRestoreObjectHandler(w http.ResponseWriter, r *
}
}
// set or upgrade restore expiry
restoreExpiry := lifecycle.ExpectedExpiryTime(time.Now(), rreq.Days)
restoreExpiry := lifecycle.ExpectedExpiryTime(time.Now().UTC(), rreq.Days)
metadata := cloneMSS(objInfo.UserDefined)
// update self with restore metadata