You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be careful when using these headers on the origin server, since they will contain more than one (comma-separated) value if the original request already contained one of these headers. For example, you can use %{X-Forwarded-For}i in the log format string of the origin server to log the original clients IP address, but you may get more than one address if the request passes through several proxies.
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Bug Description
The implement of c.Protocol() and c.Hostname() is wrong and the problem is happen when request is go through more than 1 proxies.
Reference: https://httpd.apache.org/docs/2.2/mod/mod_proxy.html#page-header
xp-framework/xp-framework#162
How to Reproduce
Steps to reproduce the behavior:
Expected Behavior
c.BaseURL(), c.Protocol(), c.Hostname() return only first item in list
Reference: xp-framework/xp-framework#162
Fiber Version
v2.38.1
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: