Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_proxy_module.c @ 589:e19e5f542878 NGINX_0_8_25
nginx 0.8.25
*) Change: now no message is written in an error log if a variable is
not found by $r->variable() method.
*) Feature: the ngx_http_degradation_module.
*) Feature: regular expression named captures.
*) Feature: now URI part is not required a "proxy_pass" directive if
variables are used.
*) Feature: now the "msie_padding" directive works for Chrome too.
*) Bugfix: a segmentation fault occurred in a worker process on low
memory condition; the bug had appeared in 0.8.18.
*) Bugfix: nginx sent gzipped responses to clients those do not support
gzip, if "gzip_static on" and "gzip_vary off"; the bug had appeared
in 0.8.16.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 16 Nov 2009 00:00:00 +0300 |
parents | c04fa65fe604 |
children | 5c576ea5dbd9 |
comparison
equal
deleted
inserted
replaced
588:91e4b06e1a01 | 589:e19e5f542878 |
---|---|
722 } | 722 } |
723 | 723 |
724 return NGX_ERROR; | 724 return NGX_ERROR; |
725 } | 725 } |
726 | 726 |
727 if (url.uri.len && url.uri.data[0] == '?') { | 727 if (url.uri.len) { |
728 p = ngx_pnalloc(r->pool, url.uri.len + 1); | 728 if (url.uri.data[0] == '?') { |
729 if (p == NULL) { | 729 p = ngx_pnalloc(r->pool, url.uri.len + 1); |
730 return NGX_ERROR; | 730 if (p == NULL) { |
731 } | 731 return NGX_ERROR; |
732 | 732 } |
733 *p++ = '/'; | 733 |
734 ngx_memcpy(p, url.uri.data, url.uri.len); | 734 *p++ = '/'; |
735 | 735 ngx_memcpy(p, url.uri.data, url.uri.len); |
736 url.uri.len++; | 736 |
737 url.uri.data = p - 1; | 737 url.uri.len++; |
738 url.uri.data = p - 1; | |
739 } | |
740 | |
741 } else { | |
742 url.uri = r->unparsed_uri; | |
738 } | 743 } |
739 | 744 |
740 ctx->vars.key_start = u->schema; | 745 ctx->vars.key_start = u->schema; |
741 | 746 |
742 ngx_http_proxy_set_vars(&url, &ctx->vars); | 747 ngx_http_proxy_set_vars(&url, &ctx->vars); |