From 3d33dc8f5fe07b0d2e045a30c9379f93f061cde7 Mon Sep 17 00:00:00 2001 From: "alejandro.labad" Date: Mon, 23 Nov 2020 07:32:13 +0100 Subject: [PATCH] Fix - context timeout not launched on get bucket location #1413 --- bucket-cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bucket-cache.go b/bucket-cache.go index 7d485a6b1c..5b95958487 100644 --- a/bucket-cache.go +++ b/bucket-cache.go @@ -102,6 +102,7 @@ func (c Client) getBucketLocation(ctx context.Context, bucketName string) (strin return "", err } + req = req.WithContext(ctx) // Initiate the request. resp, err := c.do(req) defer closeResponse(resp)