Ignore region in the case of admin API (#5919)

Admin API is not an S3 API and hence it is not required
to honor server region while validating admin API calls.

Fixes #2411
This commit is contained in:
Praveen raj Mani
2018-06-07 23:07:31 +05:30
committed by kannappanr
parent 6a8bfcef1c
commit c0cfe21c00
2 changed files with 13 additions and 11 deletions

View File

@@ -382,8 +382,8 @@ func (c AdminClient) newRequest(method string, reqData requestData) (req *http.R
method = "POST"
}
// Default all requests to "us-east-1"
location := "us-east-1"
// Default all requests to ""
location := ""
// Construct a new target URL.
targetURL, err := c.makeTargetURL(reqData)