#2113·sinatra

Empty PATH_INFO is (probably) invalid and will (probably) fail in Rack 3.2.

Author: ioquatixCreated Jul 28, 2025Updated Oct 14, 2025
Labelsbug

See https://github.com/rack/rack/pull/2316 and https://github.com/rack/rack/issues/2307 for background.

These two tests use an empty PATH_INFO which is basically invalid:

https://github.com/sinatra/sinatra/blob/5e1598501eb23a8673d61034df7be7d50c228400/test/routing_test.rb#L248-L276

A web server request must always begin with a / character, e.g.

GET / HTTP/1.0
...

There is no way that the PATH_INFO can be an empty string.