Mercurial > hg > nginx
comparison src/http/modules/ngx_http_scgi_module.c @ 4294:56cb2255735a
Fixed incorrect counting the length of headers in a SCGI request.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 16 Nov 2011 12:51:27 +0000 |
parents | f57229cba7ad |
children | 059260de158d |
comparison
equal
deleted
inserted
replaced
4293:3bae3d8fb573 | 4294:56cb2255735a |
---|---|
556 lcode = *(ngx_http_script_len_code_pt *) le.ip; | 556 lcode = *(ngx_http_script_len_code_pt *) le.ip; |
557 len += lcode(&le); | 557 len += lcode(&le); |
558 | 558 |
559 while (*(uintptr_t *) le.ip) { | 559 while (*(uintptr_t *) le.ip) { |
560 lcode = *(ngx_http_script_len_code_pt *) le.ip; | 560 lcode = *(ngx_http_script_len_code_pt *) le.ip; |
561 len += lcode(&le) + 1; | 561 len += lcode(&le); |
562 } | 562 } |
563 len++; | |
564 | |
563 le.ip += sizeof(uintptr_t); | 565 le.ip += sizeof(uintptr_t); |
564 } | 566 } |
565 } | 567 } |
566 | 568 |
567 if (scf->upstream.pass_request_headers) { | 569 if (scf->upstream.pass_request_headers) { |