diff --git a/bucket-handlers.go b/bucket-handlers.go index db4ccd78f..7344193fe 100644 --- a/bucket-handlers.go +++ b/bucket-handlers.go @@ -487,6 +487,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req errCode := isValidLocationContraint(r.Body, serverConfig.GetRegion()) if errCode != ErrNone { writeErrorResponse(w, r, errCode, r.URL.Path) + return } // Make bucket. err := api.ObjectAPI.MakeBucket(bucket)