Closed twest-bf closed 10 months ago
Adds the option to skip certificate validation when making requests.
func readFromFileOrURL(path string, cookie string, headers []string, ignoreCert bool) ([]byte, error) { if strings.HasPrefix(path, "http://") || strings.HasPrefix(path, "https://") { client := &http.Client{} if ignoreCert { client.Transport = &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}} } ...SNIP...
Details
Adds the option to skip certificate validation when making requests.