Output body buffer chain "flattening" doesn't work unless proxy buffering is off
Srebrenko Šehić
ssehic at gmail.com
Sat Jun 5 01:58:02 MSD 2010
On Fri, Jun 4, 2010 at 11:56 PM, Srebrenko Šehić <ssehic at gmail.com> wrote:
> for (cl = ctx->in; cl; cl = cl->next) {
> bsize = ngx_buf_size(cl->buf);
> ngx_memcpy(p + offset, cl->buf->pos, bsize);
> offset += bsize;
> }
That should be:
for (cl = in; cl; cl = cl->next) {
bsize = ngx_buf_size(cl->buf);
ngx_memcpy(p + offset, cl->buf->pos, bsize);
offset += bsize;
}
More information about the nginx-devel
mailing list