Merge pull request #309 from gfeun/feature/webhook_through_proxy

Add support for http proxies
pull/311/head
Karolis 2018-11-22 11:13:03 +00:00 committed by GitHub
commit 25d6b67936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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,
}

View File

@ -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,
}