Skip to content

Commit

Permalink
Use the proxy from environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Olds committed Aug 20, 2021
1 parent 37c1d7d commit 283798d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/fetch-headers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import (
"time"
)

var client = http.DefaultClient
var client = http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
}

func main() {
log.Print("starting server...")
Expand Down

0 comments on commit 283798d

Please sign in to comment.