diff --git a/patches/nginx-1.19.3-http_copy_pipelined_header.patch b/patches/nginx-1.19.3-http_copy_pipelined_header.patch new file mode 100644 index 0000000..ffe1782 --- /dev/null +++ b/patches/nginx-1.19.3-http_copy_pipelined_header.patch @@ -0,0 +1,12 @@ +diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c +index 71d7e9ab..fe075a87 100644 +--- a/src/http/ngx_http_request_body.c ++++ b/src/http/ngx_http_request_body.c +@@ -472,6 +472,7 @@ ngx_http_copy_pipelined_header(ngx_http_request_t *r, ngx_buf_t *buf) + } + + ngx_memcpy(b->last, buf->pos, n); ++ buf->last -= n; + + b->last += n; + r->request_length -= n; diff --git a/util/mirror-tarballs b/util/mirror-tarballs index e3cb576..8ca36e1 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -485,6 +485,13 @@ echo "$info_txt applying the reuseport_close_unused_fds patch for nginx" patch -p1 < $root/patches/nginx-$main_ver-reuseport_close_unused_fds.patch || exit 1 echo +answer=`$root/util/ver-ge "$main_ver" 1.19.3` +if [ "$answer" = "Y" ]; then + echo "$info_txt applying the http_copy_pipelined_header.patch patch to nginx" + patch -p1 < $root/patches/nginx-$main_ver-http_copy_pipelined_header.patch + echo +fi + cp $root/html/index.html docs/html/ || exit 1 cp $root/html/50x.html docs/html/ || exit 1