Skip to content

Conversation

@dicej
Copy link
Contributor

@dicej dicej commented Aug 20, 2025

We remove the host header from the request if present because (some versions of?) nginx have a known bug such that they can't handle host headers in HTTP/2 requests. However, the request interceptor, if present, may have its own opinions about whether a host header should be set, and if it insists on setting one we should honor that. So I've moved the workaround to run before the interceptor is run.

We remove the `host` header from the request if present because (some versions
of?) nginx have a known bug such that they can't handle `host` headers in HTTP/2
requests.  However, the request interceptor, if present, may have its own
opinions about whether a `host` header should be set, and if it insists on
setting one we should honor that.  So I've moved the workaround to run _before_
the interceptor is run.

Signed-off-by: Joel Dice <[email protected]>
@dicej dicej force-pushed the move-nginx-workaround branch from 01cae01 to 5d43fa0 Compare August 20, 2025 19:50
@dicej dicej enabled auto-merge (squash) August 20, 2025 19:53
@dicej dicej merged commit 74d17e5 into spinframework:main Aug 20, 2025
17 checks passed
@dicej dicej deleted the move-nginx-workaround branch August 20, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants