Skip to content

Commit

Permalink
Use http.DefaultTransport to support HTTP proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
gfeun committed Nov 22, 2018
1 parent 9b9ff2e commit c1f5512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions extension/notification/mattermost/mattermost.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ func (s *sender) Configure(config *notification.Config) (bool, error) {
s.endpoint = httpConfig.Endpoint

// Setup HTTP client.
transport := &http.Transport{}
s.client = &http.Client{
Transport: transport,
Transport: http.DefaultTransport,
Timeout: timeout,
}

Expand Down
3 changes: 1 addition & 2 deletions extension/notification/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ func (s *sender) Configure(config *notification.Config) (bool, error) {
s.endpoint = httpConfig.Endpoint

// Setup HTTP client.
transport := &http.Transport{}
s.client = &http.Client{
Transport: transport,
Transport: http.DefaultTransport,
Timeout: timeout,
}

Expand Down

0 comments on commit c1f5512

Please sign in to comment.