Don't verify self-signed AS certificates

This commit is contained in:
Andrew Morgan 2018-07-03 16:48:50 +01:00
parent 74591eb9b3
commit ee5ec50dbe

View file

@ -18,6 +18,7 @@ package query
import (
"context"
"crypto/tls"
"encoding/json"
"net/http"
"net/url"
@ -106,6 +107,12 @@ func (a *AppServiceQueryAPI) RoomAliasExists(
func makeHTTPClient() *http.Client {
return &http.Client{
Timeout: time.Second * 30,
// TODO: Verify certificates
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // nolint: gas
},
},
}
}