Merge pull request #482 from craftbyte/feature/tls-renegotiation

Set HTTPS TLS renegotiation to "once as client"
pull/548/head
Hunter Long 2020-04-28 05:05:48 -07:00 committed by GitHub
commit 2893218ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,6 @@ import (
"crypto/tls"
"errors"
"fmt"
"github.com/ararog/timeago"
"io"
"io/ioutil"
"net"
@ -15,6 +14,8 @@ import (
"strconv"
"strings"
"time"
"github.com/ararog/timeago"
)
var (
@ -234,6 +235,7 @@ func HttpRequest(url, method string, content interface{}, headers []string, body
TLSClientConfig: &tls.Config{
InsecureSkipVerify: !verifySSL,
ServerName: verifyHost,
Renegotiation: tls.RenegotiateOnceAsClient,
},
DisableKeepAlives: true,
ResponseHeaderTimeout: timeout,