From 56786f27dd1042198c5bd967adfb9e121d590200 Mon Sep 17 00:00:00 2001 From: maxlerebourg Date: Sat, 25 Apr 2026 18:04:31 +0200 Subject: [PATCH] :bug: fix appsec bypass --- bouncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bouncer.go b/bouncer.go index 0e2de43..aa5f92c 100644 --- a/bouncer.go +++ b/bouncer.go @@ -713,7 +713,7 @@ func appsecQuery(bouncer *Bouncer, ip string, httpReq *http.Request) error { Path: bouncer.appsecPath, } var req *http.Request - if bouncer.appsecBodyLimit > 0 && httpReq.Body != nil && httpReq.ContentLength > 0 { + if bouncer.appsecBodyLimit > 0 && httpReq.Body != nil { var bodyBuffer bytes.Buffer limitedReader := io.LimitReader(httpReq.Body, bouncer.appsecBodyLimit) teeReader := io.TeeReader(limitedReader, &bodyBuffer)