]> git.kaiwu.me - nginx.git/commit
Fixed generating chunked response after 46e3542d51b3.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 10 Nov 2020 20:42:45 +0000 (20:42 +0000)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 10 Nov 2020 20:42:45 +0000 (20:42 +0000)
commiteb8f476d599306507300a82b4a26d2a2476b748c
tree031017c8d7c046ae3d280143b6e497baa8328d84
parent5bbc3f1967a8ac1cce0f16b428f156301b81beb9
Fixed generating chunked response after 46e3542d51b3.

If trailers were missing and a chain carrying the last_buf flag had no data
in it, then last HTTP/1 chunk was broken.  The problem was introduced while
implementing HTTP/3 response body generation.

The change fixes the issue and reduces diff to the mainline nginx.
src/http/modules/ngx_http_chunked_filter_module.c