From fdf1164aee36d60b34ca82c07fe02b68e972f53a Mon Sep 17 00:00:00 2001 From: Torsten Juergeleit Date: Wed, 31 May 2017 16:34:05 +0200 Subject: PLT-5705 Created a single source of http.Client creation logic with internet proxy support, reasonable timeouts and optional insecure connections (#6503) --- app/webtrc.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/webtrc.go') diff --git a/app/webtrc.go b/app/webtrc.go index a2ead21ab..76e173651 100644 --- a/app/webtrc.go +++ b/app/webtrc.go @@ -4,7 +4,6 @@ package app import ( - "crypto/tls" "encoding/base64" "net/http" "strings" @@ -25,9 +24,5 @@ func RevokeWebrtcToken(sessionId string) { rq.Header.Set("Content-Type", "application/json") // we do not care about the response - tr := &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: *utils.Cfg.ServiceSettings.EnableInsecureOutgoingConnections}, - } - httpClient := &http.Client{Transport: tr} - httpClient.Do(rq) + utils.HttpClient().Do(rq) } -- cgit v1.2.3-1-g7c22