-
Notifications
You must be signed in to change notification settings - Fork 279
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
resolver with path bug #281
Comments
So, I learned that path is not the path you want to redirect to but the piece of the current path that you would like to remove. Not what I was expecting and not really what I think is best but I got it working nonetheless Say your resolver received a URL of You could return |
I think there is a bug in how the path is removed from the URL. In the code below we can see it trying to take the length of the pathname off of the beginning of the request.url property.
redbird/lib/proxy.js
Lines 646 to 653 in cb7781e
If I am not mistaken, that means returning the path of
/test
in your resolver will result in the request.url having http removed from the beginning instead of the end.The text was updated successfully, but these errors were encountered: