Open pablobastidasv opened 5 years ago
This is territory where I'm not confident on how it should work. Will have to investigate.
I would like to try to fix this issue.
When I debug the process to reproduce the issue, I find that the Host
of HttpServletRequest passed in /src/main/java/spark/embeddedserver/jetty/JettyHandler.doHandle()
method is proxy.mydomain.com
, which means it is not a bug in code.
After searching for answear, I find this link may help you understand the problem.
Given:
When:
or
Then: I expect my response with
localhost:4567
but I getproxy.mydomain.com
.Questions:
Host
header value when my service is behind a proxy?