Closed jkowens closed 6 years ago
@jkowens When I noticed you'd closed this, and I'd never even commented on it, I was mortified. I'm so sorry.
Thanks very much for doing it though - I've just ported the tests to the new test suite and merged the result to master
.
@gma hey no hard feelings 😄
Thanks for the update!
Fixes gma/nesta#112.
This just implements the fix noted by @ms. Using request.path_info is the correct method because it ignores the SCRIPT_NAME environment variable that gets set when a Sinatra app is mapped to a path other than "/".
I think other than proving it doesn't break existing functionality, adding a test to show that SCRIPT_NAME is in fact ignored is all that is really needed.