From 963315aca0a62355eff8240066a0ac1182de428f Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 16 Nov 2011 12:51:27 +0000 Subject: [PATCH] Fixed incorrect counting the length of headers in a SCGI request. --- src/http/modules/ngx_http_scgi_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c index 1feac713b..168f497ce 100644 --- 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_request_t *r) 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); } }