comparison src/http/modules/ngx_http_scgi_module.c @ 4362:8e7bb000ba4a stable-1.0

Merge of r4295: Fixed incorrect counting the length of headers in a SCGI request.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 14 Dec 2011 15:28:13 +0000
parents 94b995c7c614
children 3a1507f48686
comparison
equal deleted inserted replaced
4361:6bfae7032017 4362:8e7bb000ba4a
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) {