Description
If I use a Router
where the prefix includes a forward slash, I would expect the whole prefix to be stripped from the request before matching on the inner routes. More specifically, if I have routes like this:
org.http4s.server.Router(
"pref-a/pref-b" -> myRoutes
)
And I make a request to pref-a/pref-b/my-resource
, I would expect to be able to match Root / "my-resource"
within myRoutes
.
This appears to work as expected if I use blaze as the server, but if I use jetty it only removes the first segment of the prefix, meaning that I have to match Root / "pref-b" / "my-resource"
.
Not sure how good a job I did explaining that, so I have reproduced it in this repo. It spins up jetty on 8080 and blaze on 8081 serving the same routes. You can see that we get the expected behaviour from blaze but not from jetty.