diff --git a/transport/http/client.go b/transport/http/client.go index c5dace97b..f1ca9c3a4 100644 --- a/transport/http/client.go +++ b/transport/http/client.go @@ -9,8 +9,6 @@ import ( "net/http" "net/url" - "golang.org/x/net/context/ctxhttp" - "github.com/go-kit/kit/endpoint" ) @@ -118,7 +116,8 @@ func (c Client) Endpoint() endpoint.Endpoint { ctx = f(ctx, req) } - resp, err = ctxhttp.Do(ctx, c.client, req) + resp, err = c.client.Do(req.WithContext(ctx)) + if err != nil { return nil, err }