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

ruby-grape / grape / 34777307670 / 17
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2026 07:19PM UTC
Files 169
Run time 5s
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

13 Sep 2026 07:18PM UTC coverage: 97.814% (+0.007%) from 97.807%
34777307670.17

push

github

web-flow
Route raw non-ASCII paths when an API declares a non-ASCII route (#2942)

Rack hands PATH_INFO over binary, and matching a binary string that holds
non-ASCII bytes against a UTF-8 regexp raises Encoding::CompatibilityError.
A route whose path holds a non-ASCII literal (`/café/:id`) compiles to such
a regexp, and every request is matched against a union that holds it. So
once an API declared one, every request whose path carried raw non-ASCII
bytes raised, whichever route it was meant for and whether or not the bytes
were valid UTF-8. The percent-encoded spelling of the same path routed.

Router#compile! now records whether any compiled union has a fixed encoding.
Only then, and only for a path that is not ASCII, the router routes a copy
of the path tagged UTF-8 and publishes that copy as the normalized path. A
path whose bytes are not UTF-8 cannot be matched against those routes at
all, so it is answered as a path no route matched. PATH_INFO itself stays
binary, and an API without a non-ASCII route routes exactly as before.
Router#recognize_path gets the same treatment.

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

1356 of 1429 branches covered (94.89%)

Branch coverage included in aggregate %.

4104 of 4153 relevant lines covered (98.82%)

1128.39 hits per line

Source Files on job run-3.3-gemfiles/rails_8_1.gemfile - 34777307670.17
  • Tree
  • List 169
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 34777307670
  • a8f46b27 on github
  • Prev Job for on master (#34776966334.25)
  • Next Job for on master (#34990187739.27)
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