Skip to content

Commit aafd77f

Browse files
committed
fix: use http.DefaultClient to read proxy env vars
Signed-off-by: Tyler Gillson <[email protected]>
1 parent c36994d commit aafd77f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/sinks/sink.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ type Client struct {
4040

4141
// NewClient returns a new Client with the provided timeout.
4242
func NewClient(timeout time.Duration) *Client {
43-
client := &http.Client{
44-
Timeout: timeout,
45-
}
43+
client := http.DefaultClient // inherit http.ProxyFromEnvironment
44+
client.Timeout = timeout
4645
return &Client{
4746
hclient: client,
4847
}

0 commit comments

Comments
 (0)