disable delete expires s3 entry in filer

This commit is contained in:
Konstantin Lebedev committed 2025-11-03 14:09:02 +05:00
1 parent dcc84f9f34
commit e086793cb3
3 files changed
+13 -3

No files matched your search

+3 -1
View File
@@ -333,7 +333,9 @@ func (s3a *S3ApiServer) putToFiler(r *http.Request, uploadUrl string, dataReader
proxyReq.Header.Set(s3_constants.SeaweedFSSSES3Key, base64.StdEncoding.EncodeToString(sseS3Metadata))
glog.V(3).Infof("putToFiler: storing SSE-S3 metadata for object %s with keyID %s", uploadUrl, sseS3Key.KeyID)
}
if s3a.option.AllowDeleteObjectsByTTL {
proxyReq.Header.Set(s3_constants.SeaweedFSExpiresS3, "true")
}
// ensure that the Authorization header is overriding any previous
// Authorization header which might be already present in proxyReq
s3a.maybeAddFilerJwtAuthorization(proxyReq, true)