Merge pull request #309 from gfeun/feature/webhook_through_proxy
Add support for http proxiespull/311/head
commit
25d6b67936
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue