mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
nginx sets the value of the `$http_host` variable to the empty string when using http/3, as there is technically no `Host:` header sent: https://github.com/nginx-quic/nginx-quic/issues/3 Users with a browser that support http/3 will send their first request to nginx with http/2, and get an expected HTTP 200 -- but any subsequent requests will fail with am HTTP 400, since the browser will have upgraded to http/3, which has an empty `Host` header, which Zulip rejects. Switch to the `$host` variable, which works for all HTTP versions. Co-authored-by: Alex Vandiver <alexmv@zulip.com>
4.5 KiB
Executable File
4.5 KiB
Executable File