• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 32219634382
97%

Build:
DEFAULT BRANCH: master
Ran 19 Aug 2026 05:30AM UTC
Jobs 32
Files 168
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Aug 2026 05:29AM UTC coverage: 96.978%. Remained the same
32219634382

push

github

web-flow
Match Accept media types case-insensitively (#2847)

Media types are case-insensitive (RFC 9110 section 8.3.1), but the registered
ones are spelled in lower case and matched literally, so a differently-cased
Accept header found nothing:

    Accept: TEXT/PLAIN                      -> served application/json
    Accept: APPLICATION/VND.TWITTER-V1+JSON -> api.version nil

Neither failed loudly. Content negotiation fell through to the default
format, and header versioning behaved as though no version had been asked
for, so the request was served by whichever version matched first -- the
client quietly got something other than what it asked for.

Three sites decided this, all comparing against lower-case registered types:
the formatter's Accept lookup, MediaType.best_quality_media_type, and the
vendor pattern in MediaType.parse / .match?. Down-case the incoming media
type at each. The vendor pattern stays lower-case, which is the case a
vendor and version are declared in and therefore compared in.

Grape already treats media types this way when deciding whether to escape an
error body (Middleware::Error#html_content_type?, from #2789).

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1211 of 1301 branches covered (93.08%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 2 files covered. (100.0%)

3828 of 3895 relevant lines covered (98.28%)

27002.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/dry_validation.gemfile - 32219634382.1 19 Aug 2026 05:30AM UTC 167
58.05
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 32219634382.2 19 Aug 2026 05:30AM UTC 167
55.39
GitHub Action Run
3 run-3.4-gemfiles/rack_3_1.gemfile - 32219634382.3 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
4 run-4.0-gemfiles/rack_3_0.gemfile - 32219634382.4 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
5 run-3.3-gemfiles/rails_8_1.gemfile - 32219634382.5 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
6 run-3.3-gemfiles/rack_3_0.gemfile - 32219634382.6 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
7 run-4.0-gemfiles/rack_3_1.gemfile - 32219634382.7 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
8 run-4.0-gemfiles/multi_json_1_20.gemfile - 32219634382.8 19 Aug 2026 05:30AM UTC 167
47.69
GitHub Action Run
9 run-3.4-gemfiles/rails_8_1.gemfile - 32219634382.9 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
10 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32219634382.10 19 Aug 2026 05:30AM UTC 167
47.09
GitHub Action Run
11 run-4.0-gemfiles/rack_2_2.gemfile - 32219634382.11 19 Aug 2026 05:30AM UTC 167
95.57
GitHub Action Run
12 run-3.4-gemfiles/rack_2_2.gemfile - 32219634382.12 19 Aug 2026 05:30AM UTC 167
95.57
GitHub Action Run
13 run-3.3-gemfiles/rack_2_2.gemfile - 32219634382.13 19 Aug 2026 05:30AM UTC 167
95.57
GitHub Action Run
14 run-3.3-gemfiles/rails_8_0.gemfile - 32219634382.14 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
15 run-4.0-gemfiles/grape_entity.gemfile - 32219634382.15 19 Aug 2026 05:30AM UTC 167
50.33
GitHub Action Run
16 run-4.0-gemfiles/rails_8_1.gemfile - 32219634382.16 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
17 run-3.3-gemfiles/rack_3_2.gemfile - 32219634382.17 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
18 run-4.0-Gemfile - 32219634382.18 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 32219634382.19 19 Aug 2026 05:30AM UTC 167
47.05
GitHub Action Run
20 run-3.4-gemfiles/rails_7_2.gemfile - 32219634382.20 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
21 run-3.3-Gemfile - 32219634382.21 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
22 run-3.4-gemfiles/rack_3_0.gemfile - 32219634382.22 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
23 run-3.3-gemfiles/rails_7_2.gemfile - 32219634382.23 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
24 run-4.0-gemfiles/multi_json.gemfile - 32219634382.24 19 Aug 2026 05:30AM UTC 167
47.65
GitHub Action Run
25 run-4.0-gemfiles/hashie.gemfile - 32219634382.25 19 Aug 2026 05:30AM UTC 167
62.02
GitHub Action Run
26 run-3.4-gemfiles/rails_8_0.gemfile - 32219634382.26 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
27 run-3.3-gemfiles/rack_3_1.gemfile - 32219634382.27 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
28 run-3.4-gemfiles/rack_3_2.gemfile - 32219634382.28 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
29 run-3.4-Gemfile - 32219634382.29 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
30 run-4.0-gemfiles/rails_7_2.gemfile - 32219634382.30 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
31 run-4.0-gemfiles/rails_8_0.gemfile - 32219634382.31 19 Aug 2026 05:30AM UTC 168
95.61
GitHub Action Run
32 run-4.0-gemfiles/rack_3_2.gemfile - 32219634382.32 19 Aug 2026 05:30AM UTC 167
95.61
GitHub Action Run
Source Files on build 32219634382
  • Tree
  • List 168
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32219634382
  • 6c79be7d on github
  • Prev Build on master (#32219576460)
  • Next Build on master (#32339560319)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc