ruby-grape / ruby-grape/grape

Request Headers section in README seems misleading

Open
#1,901 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug?
Dominant language
Ruby
Stars
10k
Forks
1.2k
Avg merge
14h 38m
Merged PRs (30d)
92

Description

Perhaps it is related to #1770.

So the README says that an example below will be normalized:

curl -H "secret_PassWord: swordfish" ...

But actually - it won't. If header name contains an underscore - in env it will remain as is and without HTTP_ prefix, and it won't appear in headers helper at all.

Contributor guide

Open the contributing guide

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 with the Request Headers section in README and the curl example using "secret_PassWord: swordfish". Compare its normalization claim with the documented env behavior and headers helper, then update the README so the example and explanation match the actual handling of header names containing underscores.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
documentation
Issue type
Documentation
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.