diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2025-11-05 14:06:02 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2025-11-05 14:06:02 +0500 |
| commit | 558f4be73b069894cab150efbe77a2e823d74cf5 (patch) | |
| tree | 30e75311bd09100b0ae3792c27ee5fbce782e121 /weed/s3api/s3api_object_handlers_put.go | |
| parent | 7c4179507810633f20d987fcf159a1c0412bc43d (diff) | |
| download | seaweedfs-558f4be73b069894cab150efbe77a2e823d74cf5.tar.xz seaweedfs-558f4be73b069894cab150efbe77a2e823d74cf5.zip | |
allowDeleteObjectsByTTL by default
Diffstat (limited to 'weed/s3api/s3api_object_handlers_put.go')
| -rw-r--r-- | weed/s3api/s3api_object_handlers_put.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/s3api/s3api_object_handlers_put.go b/weed/s3api/s3api_object_handlers_put.go index 1609ca510..0d07c548e 100644 --- a/weed/s3api/s3api_object_handlers_put.go +++ b/weed/s3api/s3api_object_handlers_put.go @@ -333,9 +333,8 @@ 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") - } + // Set TTL-based S3 expiry (modification time) + 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) |
