diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2011-12-14 15:28:13 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2011-12-14 15:28:13 +0000 |
| commit | 430aef49ace08d55d59a2cf600af25bdfe6b0482 (patch) | |
| tree | 1908a9727740223a76b8ebd1ef963a71aa77f801 | |
| parent | 408c3315455ce5a32e3e4501513cda07145f1142 (diff) | |
| download | nginx-430aef49ace08d55d59a2cf600af25bdfe6b0482.tar.gz nginx-430aef49ace08d55d59a2cf600af25bdfe6b0482.tar.bz2 | |
Merge of r4295:
Fixed incorrect counting the length of headers in a SCGI request.
| -rw-r--r-- | src/http/modules/ngx_http_scgi_module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c index 1feac713b..168f497ce 100644 --- 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_request_t *r) 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); } } |
