Mercurial > hg > nginx-quic
changeset 4294:56cb2255735a
Fixed incorrect counting the length of headers in a SCGI request.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 16 Nov 2011 12:51:27 +0000 |
parents | 3bae3d8fb573 |
children | 05031fce7ce8 |
files | src/http/modules/ngx_http_scgi_module.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_scgi_module.c +++ b/src/http/modules/ngx_http_scgi_module.c @@ -558,8 +558,10 @@ ngx_http_scgi_create_request(ngx_http_re while (*(uintptr_t *) le.ip) { lcode = *(ngx_http_script_len_code_pt *) le.ip; - len += lcode(&le) + 1; + len += lcode(&le); } + len++; + le.ip += sizeof(uintptr_t); } }