-
Notifications
You must be signed in to change notification settings - Fork 663
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
fix #976 Support for "X-Forwarded-Proto" headers Multiple Values #983
Conversation
@devsonic Can you elaborate more why you decided to take into consideration the first entry from the comma separated header value? |
As far as i know, reactor-netty use 'ConnectorInfo.java' to write requested client connection infos. In the reactor-netty code, "x-forwarded-host" was supposed to get the first element, so i decided to follow rule. (Similarly, 'proto' of forwarded specification also gets the first value.)
Interestingly, other project(tornade) handled it differently. I think it can be different for different server frameworks. if you have any opinion, please let me know. thank you. |
@devsonic What do you think if we expose a new API?
so if you just use |
@violetagg but i have slight worries about that.
and as you mentioned, |
@devsonic I'll be happy to review your idea when it is ready |
@devsonic should I/you create a feature request for this
or we will cover it with this PR? |
@violetagg |
#976
changes: