This commit is contained in:
Max Lerebourg
2022-09-29 14:01:33 +02:00
parent 2569f26805
commit b545eac5a8
+1 -2
View File
@@ -304,7 +304,7 @@ func handleStreamCache(a *Bouncer, initialized bool) {
a.crowdsecStreamHealthy = true
}
func crowdsecQuery(a *Bouncer, stringURL string) ([]byte) {
func crowdsecQuery(a *Bouncer, stringURL string) []byte {
req, _ := http.NewRequest(http.MethodGet, stringURL, nil)
req.Header.Add(crowdsecAuthHeader, a.crowdsecKey)
res, err := a.client.Do(req)
@@ -332,4 +332,3 @@ func crowdsecQuery(a *Bouncer, stringURL string) ([]byte) {
}
return body
}