diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2025-09-23 15:03:52 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2025-10-23 18:40:05 +0400 |
| commit | 42ca3a4576a32d0a912b0bba4088b8169f55ab2d (patch) | |
| tree | 9277aa698778e2b82eaed13d6196ac21e1c0c990 /src/http/modules | |
| parent | c8c7beb96f61e2251abbc345357116131cf91c22 (diff) | |
| download | nginx-42ca3a4576a32d0a912b0bba4088b8169f55ab2d.tar.gz nginx-42ca3a4576a32d0a912b0bba4088b8169f55ab2d.tar.bz2 | |
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.
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_chunked_filter_module.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |
