From 1a64c196a7d43f83a14fec20ce8936e599c92865 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Tue, 10 Sep 2024 16:48:11 +0400 Subject: Proxy: proxy_pass_trailers directive. The directive allows to pass upstream response trailers to client. --- src/http/ngx_http_request_body.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http/ngx_http_request_body.c') diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index afb042395..93c69220c 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -870,7 +870,7 @@ ngx_http_discard_request_body_filter(ngx_http_request_t *r, ngx_buf_t *b) for ( ;; ) { - rc = ngx_http_parse_chunked(r, b, rb->chunked); + rc = ngx_http_parse_chunked(r, b, rb->chunked, 0); if (rc == NGX_OK) { @@ -1131,7 +1131,7 @@ ngx_http_request_body_chunked_filter(ngx_http_request_t *r, ngx_chain_t *in) cl->buf->file_pos, cl->buf->file_last - cl->buf->file_pos); - rc = ngx_http_parse_chunked(r, cl->buf, rb->chunked); + rc = ngx_http_parse_chunked(r, cl->buf, rb->chunked, 0); if (rc == NGX_OK) { -- cgit