openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.31k stars 2.04k forks source link

http2 request failed #2285

Closed zffocussss closed 8 months ago

zffocussss commented 8 months ago

Hi guys: we are using the kong application gateway which is built with openrest and other plugins.but requests failed due to http2 request.

https://github.com/openresty/lua-nginx-module/blob/7598ff389ef5a1a3e8949c48a6e13292fa9adc9e/src/ngx_http_lua_req_body.c#L90

ZJfans commented 8 months ago

check if your request has content-length header

zffocussss commented 8 months ago

check if your request has content-length header

content-length request header is not sent.It is not mandatory with the http2.

oowl commented 8 months ago

Please check the context in https://github.com/openresty/lua-nginx-module/pull/2237 and https://github.com/openresty/lua-nginx-module/issues/2172