Mercurial > hg > nginx-mail
diff src/http/modules/ngx_http_proxy_module.c @ 128:f1ad9023c312 NGINX_0_3_11
nginx 0.3.11
*) Bugfix: nginx did not pass the client request headers and body while
proxying; bug appeared in 0.3.10.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Nov 2005 00:00:00 +0300 |
parents | df17fbafec8f |
children | 82d695e3d662 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -673,10 +673,10 @@ ngx_http_proxy_create_request(ngx_http_r code = *(ngx_http_script_code_pt *) e.ip; code((ngx_http_script_engine_t *) &e); } + + b->last = e.pos; } - b->last = e.pos; - #if (NGX_DEBUG) { ngx_str_t s; @@ -1621,7 +1621,7 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t conf->body_set = prev->body_set; } - if (conf->body_set_len == 0) { + if (conf->body_source.data && conf->body_set_len == NULL) { ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));