mirror of
https://github.com/minio/minio.git
synced 2025-03-31 17:53:43 -04:00
Adding return statement after error response in the lastest commit to verify location constraint (#1348)
This commit is contained in:
parent
4cf73caf02
commit
560c3bd153
@ -487,6 +487,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req
|
|||||||
errCode := isValidLocationContraint(r.Body, serverConfig.GetRegion())
|
errCode := isValidLocationContraint(r.Body, serverConfig.GetRegion())
|
||||||
if errCode != ErrNone {
|
if errCode != ErrNone {
|
||||||
writeErrorResponse(w, r, errCode, r.URL.Path)
|
writeErrorResponse(w, r, errCode, r.URL.Path)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// Make bucket.
|
// Make bucket.
|
||||||
err := api.ObjectAPI.MakeBucket(bucket)
|
err := api.ObjectAPI.MakeBucket(bucket)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user