Adding return statement after error response in the lastest commit to verify location constraint (#1348)

This commit is contained in:
karthic rao 2016-04-22 08:38:08 +05:30 committed by Harshavardhana
parent 4cf73caf02
commit 560c3bd153

View File

@ -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)