mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
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:
committed by
kannappanr
parent
6a8bfcef1c
commit
c0cfe21c00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user