Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware uses :path-info as well as :uri #16

Merged
merged 1 commit into from
Apr 16, 2014
Merged

Middleware uses :path-info as well as :uri #16

merged 1 commit into from
Apr 16, 2014

Conversation

mwmitchell
Copy link
Contributor

* When running a Ring app in a servlet environment, :uri contains the path of the app, but it also includes the servlet base path. This causes problems with route matching since it currently only uses :uri.
* Similar to what Ring already does with the path-info fn here: https://github.com/ring-clojure/ring/blob/1d74427381b2861639033ab80007b6bbef1be508/ring-core/src/ring/util/request.clj#L54
* Added simple test
malcolmsparks added a commit that referenced this pull request Apr 16, 2014
Middleware uses :path-info as well as :uri
@malcolmsparks malcolmsparks merged commit 0bb3210 into juxt:master Apr 16, 2014
@malcolmsparks
Copy link
Contributor

Merged. Thanks very much for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants