[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] No HTTP_HOST in Jetty 11 HTTP/2 environment variables: is it by design or is it a bug?
|
Hi,
On Thu, Sep 22, 2022 at 2:14 PM Michał Niklas <michal.niklas@xxxxxxxxxx> wrote:
>
> Hi,
>
> Some time ago I upgraded from jetty 9.4.14.v20181114 to jetty 11
> (11.0.12). In Jetty 9 both HTTP, and HTTP/2 servers set HTTP_HOST
> environment variable that was used by some of our applications.
> In Jetty 11 HTTP_HOST is set only by HTTP server.
>
> Is it by design or by accident (bug)? I haven't found any notice about
> this in change log.
Jetty does not set any environment variable (looks like a FastCGI variable?).
However, in Jetty 10+ you need to add the HostHeaderCustomizer.
See:
https://github.com/eclipse/jetty.project/issues/5304
--
Simone Bordet
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz