-
Notifications
You must be signed in to change notification settings - Fork 870
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
Allow bypassing of x-forwarded header removal #2728
Conversation
Looks like AddXForwarded similarly removes the Forwarded headers and needs similar treatment. |
Haha, I did some digging and found this: #1070 (comment) |
I agree that having the extra argument be The annoying part is that the current logic doesn't always remove the other header. yarp/src/ReverseProxy/Transforms/ForwardedTransformExtensions.cs Lines 188 to 201 in 41e563c
I'm not actually sure why someone would want to add a no-op |
I can swap the parameter naming. I'm not sure what the best way to handle |
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.
Thanks.
Mind adding a few tests for these?
Minor pain point is that targeting the alpha SDK does add some friction to contributing |
Thank you. Did you run into SDK issues even after running |
I was not aware of that. Running Someone should put that in the Readme, maybe somewhere near the top in a Build section or something. Wait a minute... Narrator: The Readme already tells you exactly how to do this. |
Addresses #2727