openresty / openresty/echo-nginx-module
$request_body is empty after it set to a variable
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 251
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 2
Description
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.
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 by reproducing the reported Nginx configuration using echo_read_request_body, $request_body, set, and logformat. Compare logging $request_body directly with logging the variable assigned from it; done means the assigned value contains the request body consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, nginx
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100