summaryrefslogtreecommitdiffstats
path: root/app/webtrc.go
diff options
context:
space:
mode:
authorTorsten Juergeleit <torsten.juergeleit@gmail.com>2017-05-31 16:34:05 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2017-05-31 10:34:05 -0400
commitfdf1164aee36d60b34ca82c07fe02b68e972f53a (patch)
treedecf173e9b6fb8d8f3c10463d065ad9234fc3391 /app/webtrc.go
parentddc996f33fc39b2b8f4705d6e1232ccbad1ee4c7 (diff)
downloadchat-fdf1164aee36d60b34ca82c07fe02b68e972f53a.tar.gz
chat-fdf1164aee36d60b34ca82c07fe02b68e972f53a.tar.bz2
chat-fdf1164aee36d60b34ca82c07fe02b68e972f53a.zip
PLT-5705 Created a single source of http.Client creation logic with internet proxy support, reasonable timeouts and optional insecure connections (#6503)
Diffstat (limited to 'app/webtrc.go')
-rw-r--r--app/webtrc.go7
1 files changed, 1 insertions, 6 deletions
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)
}