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

Removed unspecified trailing slash in proxy url #893

Merged
merged 1 commit into from
Oct 18, 2015
Merged

Removed unspecified trailing slash in proxy url #893

merged 1 commit into from
Oct 18, 2015

Conversation

donasaur
Copy link
Contributor

Previously, if target='http://localhost:9060/appEndpoint' and req.url='', the url the proxied request will hit is: 'http://localhost:9060/appEndpoint**/**'

With the change, if target='http://localhost:9060/appEndpoint' and req.url='', the url the proxied request will hit is: 'http://localhost:9060/appEndpoint'

This is helpful if the app endpoint is to a router that is sensitive to the trailing slash (e.g., a Rails router)

@indexzero
Copy link
Contributor

+1

indexzero added a commit that referenced this pull request Oct 18, 2015
Removed unspecified trailing slash in proxy url
@indexzero indexzero merged commit 6b65c42 into http-party:master Oct 18, 2015
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