aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_bucket_handlers.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <lebedev_k@tochka.com>2021-10-28 19:34:37 +0500
committerKonstantin Lebedev <lebedev_k@tochka.com>2021-10-28 19:34:37 +0500
commitdc3ae5e8a624104ea7ad119e4575aadf852a8205 (patch)
tree687be2f6e637ce3c341e3cc3c57c03cc7ef045c2 /weed/s3api/s3api_bucket_handlers.go
parent2afb5a13af66e78bafe794ee30f2ea0b5fb9342b (diff)
downloadseaweedfs-dc3ae5e8a624104ea7ad119e4575aadf852a8205.tar.xz
seaweedfs-dc3ae5e8a624104ea7ad119e4575aadf852a8205.zip
DeleteBucketLifecycleConfiguration return 204
Diffstat (limited to 'weed/s3api/s3api_bucket_handlers.go')
-rw-r--r--weed/s3api/s3api_bucket_handlers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go
index b75012e9d..c45210b92 100644
--- a/weed/s3api/s3api_bucket_handlers.go
+++ b/weed/s3api/s3api_bucket_handlers.go
@@ -268,6 +268,7 @@ func (s3a *S3ApiServer) GetBucketLifecycleConfigurationHandler(w http.ResponseWr
ttls := fc.GetCollectionTtls(bucket)
if len(ttls) == 0 {
s3err.WriteErrorResponse(w, s3err.ErrNoSuchLifecycleConfiguration, r)
+ return
}
response := Lifecycle{}
for prefix, internalTtl := range ttls {
@@ -299,6 +300,6 @@ func (s3a *S3ApiServer) PutBucketLifecycleConfigurationHandler(w http.ResponseWr
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html
func (s3a *S3ApiServer) DeleteBucketLifecycleHandler(w http.ResponseWriter, r *http.Request) {
- s3err.WriteErrorResponse(w, s3err.ErrNotImplemented, r)
+ s3err.WriteEmptyResponse(w, http.StatusNoContent)
}