# HG changeset patch # User Maxim Dounin # Date 1323876493 0 # Node ID 8e7bb000ba4a0c3b2fa1f008d8dd514f91af1292 # Parent 6bfae70320179262281df138c6119a377009da9c Merge of r4295: 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); } }