Mercurial > hg > nginx
diff src/http/modules/ngx_http_scgi_module.c @ 4362:8e7bb000ba4a stable-1.0
Merge of r4295:
Fixed incorrect counting the length of headers in a SCGI request.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 Dec 2011 15:28:13 +0000 |
parents | 94b995c7c614 |
children | 3a1507f48686 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_scgi_module.c Wed Dec 14 15:25:32 2011 +0000 +++ b/src/http/modules/ngx_http_scgi_module.c Wed Dec 14 15:28:13 2011 +0000 @@ -558,8 +558,10 @@ 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); } }