Unable to read query params in a POST method
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 55
- Forks
- 33
- Avg merge
- 7d 3h
- Merged PRs (30d)
- 1
Description
The current logic around handling query params is flawed.
Parameters are only drawn from the query string on GET or HEAD requests.
https://github.com/ruby/cgi/blob/master/lib/cgi/core.rb#L661-L699
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 in lib/cgi/core.rb at lines 661-699, where query parameters are handled for request methods. Trace how POST requests are parsed and compare that path with GET and HEAD, then verify that query-string parameters remain available during POST handling. Confirm the behavior with the existing test suite or add coverage if the relevant case is missing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100