Fixed incorrect counting the length of headers in a SCGI request.

This commit is contained in:
Valentin Bartenev 2011-11-16 12:51:27 +00:00
parent 2b24a67268
commit 963315aca0

View File

@ -558,8 +558,10 @@ ngx_http_scgi_create_request(ngx_http_request_t *r)
while (*(uintptr_t *) le.ip) { while (*(uintptr_t *) le.ip) {
lcode = *(ngx_http_script_len_code_pt *) le.ip; lcode = *(ngx_http_script_len_code_pt *) le.ip;
len += lcode(&le) + 1; len += lcode(&le);
} }
len++;
le.ip += sizeof(uintptr_t); le.ip += sizeof(uintptr_t);
} }
} }