From 0249c16b0458602c09da62f7955bb6f50a6a047c Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 13 May 2017 19:41:55 +0200 Subject: [PATCH] Revert "minio: Apply fix" This reverts commit f43d34899d6f7c491a7a07b0f263f10e6018559d. --- vendor/src/github.com/minio/minio-go/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/src/github.com/minio/minio-go/api.go b/vendor/src/github.com/minio/minio-go/api.go index 19964b71c..a563a18d4 100644 --- a/vendor/src/github.com/minio/minio-go/api.go +++ b/vendor/src/github.com/minio/minio-go/api.go @@ -553,7 +553,7 @@ func (c Client) executeMethod(method string, metadata requestMetadata) (res *htt // Bucket region if set in error response and the error // code dictates invalid region, we can retry the request // with the new region. - if errResponse.Region != "" && res.StatusCode == http.StatusBadRequest { + if errResponse.Code == "InvalidRegion" && errResponse.Region != "" { c.bucketLocCache.Set(metadata.bucketName, errResponse.Region) continue // Retry. }