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:
Aditya Manthramurthy
2018-01-25 05:54:00 -08:00
committed by Nitish Tiwari
parent 2dd117f647
commit 5cdcc73bd5
2 changed files with 11 additions and 10 deletions

View File

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