comparison src/http/modules/ngx_http_proxy_module.c @ 579:4c5c2c55975c release-0.3.11

nginx-0.3.11-RELEASE import *) Bugfix: nginx did not pass the client request headers and body while proxying; the bug had appeared in 0.3.10.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 15 Nov 2005 14:49:57 +0000
parents 4d9ea73a627a
children 326634fb9d47
comparison
equal deleted inserted replaced
578:16267b938359 579:4c5c2c55975c
671 671
672 while (*(uintptr_t *) e.ip) { 672 while (*(uintptr_t *) e.ip) {
673 code = *(ngx_http_script_code_pt *) e.ip; 673 code = *(ngx_http_script_code_pt *) e.ip;
674 code((ngx_http_script_engine_t *) &e); 674 code((ngx_http_script_engine_t *) &e);
675 } 675 }
676 } 676
677 677 b->last = e.pos;
678 b->last = e.pos; 678 }
679 679
680 #if (NGX_DEBUG) 680 #if (NGX_DEBUG)
681 { 681 {
682 ngx_str_t s; 682 ngx_str_t s;
683 683
1619 conf->body_source = prev->body_source; 1619 conf->body_source = prev->body_source;
1620 conf->body_set_len = prev->body_set_len; 1620 conf->body_set_len = prev->body_set_len;
1621 conf->body_set = prev->body_set; 1621 conf->body_set = prev->body_set;
1622 } 1622 }
1623 1623
1624 if (conf->body_set_len == 0) { 1624 if (conf->body_source.data && conf->body_set_len == NULL) {
1625 1625
1626 ngx_memzero(&sc, sizeof(ngx_http_script_compile_t)); 1626 ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));
1627 1627
1628 sc.cf = cf; 1628 sc.cf = cf;
1629 sc.source = &conf->body_source; 1629 sc.source = &conf->body_source;