diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2005-11-15 14:49:57 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2005-11-15 14:49:57 +0000 |
| commit | b141f2b631f4812188806f534472490af45a6747 (patch) | |
| tree | 085e379ebed88537d635836dd097090ab6c896ff /src | |
| parent | 61b1e40939655dbab40ab5b29ca275ec51a81251 (diff) | |
| download | nginx-release-0.3.11.tar.gz nginx-release-0.3.11.tar.bz2 | |
nginx-0.3.11-RELEASE importrelease-0.3.11
*) Bugfix: nginx did not pass the client request headers and body while
proxying; the bug had appeared in 0.3.10.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/nginx.h | 2 | ||||
| -rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/nginx.h b/src/core/nginx.h index fc5d926e3..95d93ccb2 100644 --- a/src/core/nginx.h +++ b/src/core/nginx.h @@ -8,7 +8,7 @@ #define _NGINX_H_INCLUDED_ -#define NGINX_VER "nginx/0.3.10" +#define NGINX_VER "nginx/0.3.11" #define NGINX_VAR "NGINX" #define NGX_OLDPID_EXT ".oldbin" diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 5712ea04b..f1581e9e7 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -673,9 +673,9 @@ ngx_http_proxy_create_request(ngx_http_request_t *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) { @@ -1621,7 +1621,7 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) 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)); |
