diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2024-09-10 16:48:11 +0400 |
---|---|---|
committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2024-09-13 16:47:56 +0400 |
commit | 1a64c196a7d43f83a14fec20ce8936e599c92865 (patch) | |
tree | 4a04dac2ff955f43e9795ebb152fbc4055a6aacf /src/http/ngx_http_request_body.c | |
parent | 00637cce366f17b78fe1ed5c1ef0e534143045f6 (diff) | |
download | nginx-1a64c196a7d43f83a14fec20ce8936e599c92865.tar.gz nginx-1a64c196a7d43f83a14fec20ce8936e599c92865.zip |
Proxy: proxy_pass_trailers directive.
The directive allows to pass upstream response trailers to client.
Diffstat (limited to 'src/http/ngx_http_request_body.c')
-rw-r--r-- | src/http/ngx_http_request_body.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |