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

Add generic path rewrite middleware #1381

Merged
merged 1 commit into from
Apr 27, 2016
Merged

Add generic path rewrite middleware #1381

merged 1 commit into from
Apr 27, 2016

Conversation

tomwilkie
Copy link
Contributor

No description provided.

And fix a bug in the logging middleware.
@paulbellamy
Copy link
Contributor

paulbellamy commented Apr 27, 2016

What about r.URL?

Edit: based on comments here, looks like we should update it based on url.Parse(r.RequestURI).

@tomwilkie
Copy link
Contributor Author

What about r.URL?
Edit: based on comments here, looks like we should update it based on url.Parse(r.RequestURI).

Its not needed for anything we do (the proxies only rely on RequestURI because of the broken golang url parsing).

And RequestURI is not a URL, so url.Parse won't work.

@paulbellamy paulbellamy merged commit 0f3b6bc into master Apr 27, 2016
@paulbellamy paulbellamy deleted the middleware branch April 27, 2016 13:51
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