mirror of
https://github.com/github/codeql.git
synced 2026-08-05 18:03:27 +02:00
16 lines
285 B
Go
16 lines
285 B
Go
package main
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"net/http"
|
|
)
|
|
|
|
func doAuthReq(authReq *http.Request) *http.Response {
|
|
tr := &http.Transport{
|
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // NOT OK
|
|
}
|
|
client := &http.Client{Transport: tr}
|
|
res, _ := client.Do(authReq)
|
|
return res
|
|
}
|