p0pr0ck5 / lua-resty-waf

High-performance WAF built on the OpenResty stack
GNU General Public License v3.0
1.28k stars 305 forks source link

Fix error when an http2 request is performed without content length #338

Closed ogercyprien closed 10 months ago

ogercyprien commented 10 months ago

Changes in openresty 1.25 included changes in lua-nginx-module. In particular, this diff seems to introduce a breaking change where ngx.req.read_body() triggers an error when an HTTP2 or HTTP3 request is performed with no Content-Length header.

The aim of this PR is to fix this bug.