Fix query of the GET /decisions endpoint (#236)

- banned=true query parameter doesn't exist based on LAPI
  dcoumentation, remove it
This commit is contained in:
Lluís D.
2025-04-28 16:12:54 +02:00
committed by GitHub
parent 78869ecf77
commit 4bb6e830dc

View File

@@ -428,7 +428,7 @@ func handleNoStreamCache(bouncer *Bouncer, remoteIP string) (string, error) {
Scheme: bouncer.crowdsecScheme,
Host: bouncer.crowdsecHost,
Path: bouncer.crowdsecPath + crowdsecLapiRoute,
RawQuery: fmt.Sprintf("ip=%v&banned=true", remoteIP),
RawQuery: fmt.Sprintf("ip=%v", remoteIP),
}
body, err := crowdsecQuery(bouncer, routeURL.String(), false)
if err != nil {