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.16k stars 255 forks source link

Problem with $request_body #92

Open BruXy opened 4 years ago

BruXy commented 4 years ago

I think, that this example from documentation _echo_read_requestbody of does not work:

location / {
     echo_read_request_body;
     echo "Start";
     echo $request_body; # <- NOTHING
     echo $echo_request_body; # <- data OK
     echo "Stop";
}

I was digging for $request_body and it has no value, data provided in POST request are in $echo_request_body.

What should be the correct behavior?