diff src/http/modules/ngx_http_proxy_module.c @ 515:417a087c9c4d release-0.1.32

nginx-0.1.32-RELEASE import *) Bugfix: the arguments were omitted in the redirects, issued by the "rewrite" directive; the bug had appeared in 0.1.29. *) Feature: the "if" directive supports the captures in regular expressions. *) Feature: the "set" directive supports the variables and the captures of regular expressions. *) Feature: the "X-Accel-Redirect" response header line is supported in proxy and FastCGI mode.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 19 May 2005 13:25:22 +0000
parents 9b8c906f6e63
children dadfa78d2270
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -542,7 +542,9 @@ ngx_http_proxy_create_request(ngx_http_r
 
     while (*(uintptr_t *) le.ip) {
         lcode = *(ngx_http_script_len_code_pt *) le.ip;
-        lcode(&le);
+
+        /* skip the header line name length */
+        (void) lcode(&le);
 
         if (*(ngx_http_script_len_code_pt *) le.ip) {