openresty / openresty/echo-nginx-module
Problem with $request_body
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 251
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 2
Description
I think, that this example from documentation echo_read_request_body 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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documentation example for echo_read_request_body and reproduce it with a POST request using the shown Nginx configuration. Trace how $request_body and $echo_request_body are populated, then establish whether the example or module behavior is incorrect; done means the expected variable behavior is confirmed and the documentation or implementation is aligned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx
- Domain
- backend, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100