Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 12 return wrong Host header?


The host header should contain the host and port as used by the client. Thus if the request goes to the default port and is forward you a different port, the host header should not have the port in it, or at least only the default port.

Are you sure the client is using the default port and not going direct you the server?

Can you give us a bit more info: 
 + Uri and headers as sent by the client
 + Uri and headers as received by jetty
 + The actual values you get from the various request methods


On Fri, Aug 11, 2023, 21:34 Silvio Bierman via jetty-users <jetty-users@xxxxxxxxxxx> wrote:
Hello all,

I have encountered what I think is a bug in Jetty 12 but I would like to
check here if that is actually true.

I use port forwarding to forward HTTP requests from port 443 to 8443.
Requests arrive at the default port without an explicit port number in
the URL so


does not show a port number. But


returns the host name including the port number. This makes it
impossible to distinguish requests with explicit ports from requests
without these. Jetty 11 does not show this same behaviour.



jetty-users mailing list
To unsubscribe from this list, visit

Back to the top