mirror of
https://github.com/minio/minio.git
synced 2026-06-11 09:53:15 -04:00
Set expected expiry date for ExpiredObjectAllVersions (#19210)
This commit is contained in:
parent
dae9dc4847
commit
c26b8d4eb8
1 changed files with 1 additions and 1 deletions
|
|
@ -515,7 +515,7 @@ func ExpectedExpiryTime(modTime time.Time, days int) time.Time {
|
|||
func (lc Lifecycle) SetPredictionHeaders(w http.ResponseWriter, obj ObjectOpts) {
|
||||
event := lc.eval(obj, time.Time{})
|
||||
switch event.Action {
|
||||
case DeleteAction, DeleteVersionAction:
|
||||
case DeleteAction, DeleteVersionAction, DeleteAllVersionsAction:
|
||||
w.Header()[xhttp.AmzExpiration] = []string{
|
||||
fmt.Sprintf(`expiry-date="%s", rule-id="%s"`, event.Due.Format(http.TimeFormat), event.RuleID),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue