From 203ba7d2361be6e1a88516516e5f4c4ea5583db7 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Mon, 1 Sep 2025 21:39:14 -0500 Subject: [PATCH] Fix delayed long polling response headers Fixes #864 --- src/http/ngx_http_header_filter_module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c index 789938329..db2dea190 100644 --- a/src/http/ngx_http_header_filter_module.c +++ b/src/http/ngx_http_header_filter_module.c @@ -622,6 +622,9 @@ ngx_http_header_filter(ngx_http_request_t *r) b->last_buf = 1; } + if (r->chunked) { + b->flush = 1; + } out.buf = b; out.next = NULL;