changeset 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 6bfae7032017
children b46cd3ce6278
files src/http/modules/ngx_http_scgi_module.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }
     }