From 1709bffe6ebb5bfd4d71893d65920fdc4bf82f65 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 15 Mar 2026 15:56:01 +0000 Subject: Upstream: reset early_hints_length on upstream reinit. When a request was retried to a new upstream after receiving 103 Early Hints from the previous one, the accumulated early_hints_length was not reset, causing valid early hints from the next upstream to be incorrectly rejected as "too big". --- src/http/ngx_http_upstream.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http') diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 918323d9b..b64561369 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2067,6 +2067,7 @@ ngx_http_upstream_reinit(ngx_http_request_t *r, ngx_http_upstream_t *u) return NGX_ERROR; } + u->early_hints_length = 0; u->keepalive = 0; u->upgrade = 0; u->error = 0; -- cgit