# HG changeset patch # User Valentin Bartenev # Date 1321447887 0 # Node ID 56cb2255735a66db25ddcb5f7f1eac9284a96281 # Parent 3bae3d8fb573db0bed7659ede8fea738e26d82e8 Fixed incorrect counting the length of headers in a SCGI request. diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c --- 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); } }