Browse Source

Merge pull request #2878 from guol-fnst/fix_create_bucket_resp

Add "Location:" in response when creating bucket
pull/2374/head^2
Chris Lu 3 years ago
committed by GitHub
parent
commit
7c85cb332d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/s3api/s3api_bucket_handlers.go

1
weed/s3api/s3api_bucket_handlers.go

@ -135,6 +135,7 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request)
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError) s3err.WriteErrorResponse(w, r, s3err.ErrInternalError)
return return
} }
w.Header().Set("Location", "/" + bucket)
writeSuccessResponseEmpty(w, r) writeSuccessResponseEmpty(w, r)
} }

Loading…
Cancel
Save