Skip to content

Commit

Permalink
Merge pull request #21 from appbaseio/feat/allow-self-signed-certs
Browse files Browse the repository at this point in the history
feat: allow self signed certs v7
  • Loading branch information
siddharthlatest authored Aug 6, 2019
2 parents 6924bf5 + 7c2eb0c commit cbb040f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/util.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package util

import (
"crypto/tls"
"encoding/json"
"fmt"
"math"
Expand Down Expand Up @@ -176,6 +177,7 @@ func HTTPClient() *http.Client {
Timeout: 10 * time.Second,
}).DialContext,
TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
var netClient = &http.Client{
Timeout: time.Minute * 2,
Expand Down

0 comments on commit cbb040f

Please sign in to comment.