ruby / ruby/cgi

Unable to read query params in a POST method

Open
#57 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.