openresty / echo-nginx-module

An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file
http://wiki.nginx.org/NginxHttpEchoModule
BSD 2-Clause "Simplified" License
1.17k stars 254 forks source link

$request_body is empty after it set to a variable #80

Open brucenan opened 6 years ago

brucenan commented 6 years ago

echo_read_request_body is called before I get $request_body, if I add $request_body to logformat, it seems ok. But when I call set $value $request_body; and put $value into logformat, the $value is empty.