mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Admin API auth and heal related fixes (#5445)
- Fetch region for auth from global state - Fix SHA256 handling for empty body in heal API
This commit is contained in:
committed by
Nitish Tiwari
parent
2dd117f647
commit
5cdcc73bd5
@@ -138,6 +138,7 @@ func (adm *AdminClient) Heal(bucket, prefix string, healOpts HealOpts,
|
||||
var contentBody io.Reader
|
||||
if clientToken != "" {
|
||||
queryVals.Set("clientToken", clientToken)
|
||||
body = []byte{}
|
||||
} else {
|
||||
// Set a body only if clientToken is not given
|
||||
contentBody = bytes.NewReader(body)
|
||||
|
||||
Reference in New Issue
Block a user