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

Disable gorilla/mux URL cleaning to prevent sending redirect #688

Merged
merged 1 commit into from
Sep 20, 2016

Conversation

ydubreuil
Copy link
Contributor

@ydubreuil ydubreuil commented Sep 20, 2016

This fixes #167 and #651. By default, gorilla/mux cleans URL paths
such that adjacent slashes are collapsed into one single slash. This
behavior is pretty common in application stacks and it is fine, but
for Traefik, this can lead to incorrect URL paths forwarded to backend
servers.

See gorilla/mux#94 for background.

Credits goes to @sybrandy as the author of the original fix in #521

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ydubreuil
LGTM!

@emilevauge
Copy link
Member

Fixes #167
Fixes #684

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐮

@emilevauge
Copy link
Member

@ydubreuil sorry, needs a rebase :)

This fixes traefik#167 and traefik#651. By default, gorilla/mux cleans URL paths
such that adjacent slashes are collapsed into one single slash. This
behavior is pretty common in application stacks and it is fine, but
for Traefik, this can lead to incorrect URL paths forwarded to backend
servers.

See gorilla/mux#94 for background.
@ydubreuil
Copy link
Contributor Author

@emilevauge done

@emilevauge emilevauge merged commit 009057c into traefik:master Sep 20, 2016
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.

Multiple path separators in the url path causing redirect
4 participants