lifecycle:Fix args passed to determine expiry header (#11567)

master
Poorna Krishnamoorthy 4 years ago committed by GitHub
parent 289e1d8b2a
commit 55037e6e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      cmd/api-headers.go

@ -190,6 +190,7 @@ func setObjectHeaders(w http.ResponseWriter, objInfo ObjectInfo, rs *HTTPRangeSp
ModTime: objInfo.ModTime, ModTime: objInfo.ModTime,
IsLatest: objInfo.IsLatest, IsLatest: objInfo.IsLatest,
DeleteMarker: objInfo.DeleteMarker, DeleteMarker: objInfo.DeleteMarker,
SuccessorModTime: objInfo.SuccessorModTime,
}) })
if !expiryTime.IsZero() { if !expiryTime.IsZero() {
w.Header()[xhttp.AmzExpiration] = []string{ w.Header()[xhttp.AmzExpiration] = []string{

Loading…
Cancel
Save