bukaleyang / zhongkui-waf

WAF based on lua-nginx-module.
Apache License 2.0
166 stars 42 forks source link

Request body checking is enabled,http2 requests are not supported without content-length header。 #45

Closed zhuquehxb closed 2 months ago

zhuquehxb commented 5 months ago

Log: 2024/06/01 07:32:57 [error] 29161#0: *57521 lua entry thread aborted: runtime error: /usr/local/openresty/zhongkui-waf/lib/request.lua:47: http2 requests are not supported without content-length header stack traceback: coroutine 0: [C]: in function 'read_body' /usr/local/openresty/zhongkui-waf/lib/request.lua:47: in function 'getRequestBody' /usr/local/openresty/zhongkui-waf/lib/lib.lua:569: in function 'isEvilReqBody' /usr/local/openresty/zhongkui-waf/waf.lua:49: in main chunk, client: 111.35.211.10, server: bing.com, request: "GET /jobs.html HTTP/2.0", host: "www.bing.com"

Add "content-length" to what file and code? Please fix the code.

bukaleyang commented 5 months ago

需要openresty官方支持。