From 987440f0bebe9d8d24235f66efaa003bf1d18448 Mon Sep 17 00:00:00 2001 From: Liam Dawson Date: Tue, 2 Jun 2020 18:21:45 +1000 Subject: [PATCH] Support local proxy configuration --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index e1b8ba0..4b71c9f 100644 --- a/client.go +++ b/client.go @@ -34,6 +34,7 @@ type HeadersFunc func() http.Header var DefaultClient = &http.Client{ Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 10 * time.Second,