-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
reverseproxy: do not parse upstream address too early if it contains replaceble parts #5695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the struct refactor! Certainly reads cleaner this way.
Do we have coverage for when the host or entire thing is a placeholder? I think we probably also want a test for when the port has a numerical prefix followed by a placeholder (as in the reported issue). I think we can just put a lot of I think this looks good to me 👍 |
I missed that and screwed it up in my second refactor 🤦🏼♂️
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but let's hear from Matt too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wow, yeah this refactor is way better. And the new tests, love it.
Thank you for fixing this Mohammed 💯
Fixes #5688