You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method matches on (:uri request), which works fine when using a single servlet that is mapped to /, but with multiple servlets at different urls, it would be better to match from the root of the servlet. Replacing (:uri request) with (.getPathInfo (:servlet-request request)) should be enough:
:servlet-request is a non-standard key and not guaranteed to exist. Whilst most Ring adapters are based off existing Java web servers, and thus include a :servlet-request key, this is not necessarily the case. I don't want Clout to work with some adapters but crash with others.
A better solution would be to use some middleware that changes the :uri key. For example:
This method matches on (:uri request), which works fine when using a single servlet that is mapped to /, but with multiple servlets at different urls, it would be better to match from the root of the servlet. Replacing (:uri request) with (.getPathInfo (:servlet-request request)) should be enough:
The text was updated successfully, but these errors were encountered: