Closed hasueki closed 4 years ago
X-Forwarded-Host
request_uri
X-Forwarded-Url
X-Forwarded-Uri
no tests?
Agree, tests should be added for this case.
I wonder how difficult that will be, though. It may require something like Test::Nginx to really validate the header values.
Test::Nginx
X-Forwarded-Host
based on upstream headers. If header is present in the request, it will honor the value coming from upstream.request_uri
portion ofX-Forwarded-Url
, ifX-Forwarded-Uri
is present in upstream request.