From 42ca3a4576a32d0a912b0bba4088b8169f55ab2d Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 23 Sep 2025 15:03:52 +0400 Subject: CONNECT method support for HTTP/1.1. The change allows modules to use the CONNECT method with HTTP/1.1 requests. To do so, they need to set the "allow_connect" flag in the core server configuration. --- src/http/modules/ngx_http_chunked_filter_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_chunked_filter_module.c b/src/http/modules/ngx_http_chunked_filter_module.c index 4d6fd3eed..ea5cbe6b3 100644 --- a/src/http/modules/ngx_http_chunked_filter_module.c +++ b/src/http/modules/ngx_http_chunked_filter_module.c @@ -66,7 +66,9 @@ ngx_http_chunked_header_filter(ngx_http_request_t *r) || r->headers_out.status == NGX_HTTP_NO_CONTENT || r->headers_out.status < NGX_HTTP_OK || r != r->main - || r->method == NGX_HTTP_HEAD) + || r->method == NGX_HTTP_HEAD + || (r->method == NGX_HTTP_CONNECT + && r->headers_out.status < NGX_HTTP_SPECIAL_RESPONSE)) { return ngx_http_next_header_filter(r); } -- cgit