net/http/httputil: Reverse Proxy X-Forwarded-For include Port #31095
Labels
FeatureRequest
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
In the reverse proxy the port is not being added to the header
X-Forwarded-For
. The port is not a requirement but optional. From RFC 7329As the port currently isn't being included by default, and it is something I need, I am explicitly setting the header. The result is I end up with
X-Forwarded-For: 123.34.567.89:9876, 123.34.567.89
. It would be great to either add an option to include the ports or do a check that the value about to be added doesn't already exist in the string (duplicate without the port).go/src/net/http/httputil/reverseproxy.go
Lines 249 to 257 in 3089d18
The text was updated successfully, but these errors were encountered: