aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3api_bucket_handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/s3api/s3api_bucket_handlers.go')
-rw-r--r--weed/s3api/s3api_bucket_handlers.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go
index c1bb815a9..6ae6011f2 100644
--- a/weed/s3api/s3api_bucket_handlers.go
+++ b/weed/s3api/s3api_bucket_handlers.go
@@ -545,8 +545,9 @@ func (s3a *S3ApiServer) GetBucketVersioningHandler(w http.ResponseWriter, r *htt
return
}
- result := &s3.VersioningConfiguration{}
- result.SetStatus(s3.BucketVersioningStatusSuspended)
-
- s3err.WriteAwsXMLResponse(w, r, http.StatusOK, result)
+ s3err.WriteAwsXMLResponse(w, r, http.StatusOK, &s3.PutBucketVersioningInput{
+ VersioningConfiguration: &s3.VersioningConfiguration{
+ Status: aws.String(s3.BucketVersioningStatusSuspended),
+ },
+ })
}