Don't skip cert validation on appservices, fix logging

This commit is contained in:
user 2018-08-06 16:45:19 +01:00
parent a9465ad36c
commit 6d0cba84e8
2 changed files with 1 additions and 13 deletions

View file

@ -77,7 +77,7 @@ func (a *AppServiceQueryAPI) RoomAliasExists(
log.WithFields(log.Fields{
"appservice_id": appservice.ID,
"status_code": resp.StatusCode,
}).Error("Unable to close application service response body")
}).WithError(err).Error("Unable to close application service response body")
}
}()
}
@ -107,12 +107,6 @@ 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
},
},
}
}

View file

@ -68,12 +68,6 @@ func worker(db *storage.Database, ws types.ApplicationServiceWorkerState) {
// Create a HTTP client for sending requests to app services
client := &http.Client{
Timeout: transactionTimeout,
// TODO: Verify certificates
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // nolint: gas
},
},
}
// Initial check for any leftover events to send from last time