comparison src/http/modules/ngx_http_proxy_module.c @ 498:207ae3ff0444 NGINX_0_8_1

nginx 0.8.1 *) Feature: the "updating" parameter in "proxy_cache_use_stale" and "fastcgi_cache_use_stale" directives. *) Bugfix: the "If-Modified-Since", "If-Range", etc. client request header lines were passed to backend while caching if no "proxy_set_header" directive was used with any parameters. *) Bugfix: the "Set-Cookie" and "P3P" response header lines were not hidden while caching if no "proxy_hide_header/fastcgi_hide_header" directives were used with any parameters. *) Bugfix: the ngx_http_image_filter_module did not support GIF87a format. Thanks to Denis Ilyinyh. *) Bugfix: nginx could not be built modules on Solaris 10 and early; the bug had appeared in 0.7.56.
author Igor Sysoev <http://sysoev.ru>
date Mon, 08 Jun 2009 00:00:00 +0400
parents f39b9e29530d
children f0cac61857ae
comparison
equal deleted inserted replaced
497:77fae36a61b3 498:207ae3ff0444
165 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, 165 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 },
166 { ngx_string("http_502"), NGX_HTTP_UPSTREAM_FT_HTTP_502 }, 166 { ngx_string("http_502"), NGX_HTTP_UPSTREAM_FT_HTTP_502 },
167 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, 167 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 },
168 { ngx_string("http_504"), NGX_HTTP_UPSTREAM_FT_HTTP_504 }, 168 { ngx_string("http_504"), NGX_HTTP_UPSTREAM_FT_HTTP_504 },
169 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, 169 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 },
170 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING },
170 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, 171 { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF },
171 { ngx_null_string, 0 } 172 { ngx_null_string, 0 }
172 }; 173 };
173 174
174 175
2339 conf->headers_set = prev->headers_set; 2340 conf->headers_set = prev->headers_set;
2340 conf->headers_set_hash = prev->headers_set_hash; 2341 conf->headers_set_hash = prev->headers_set_hash;
2341 conf->headers_source = prev->headers_source; 2342 conf->headers_source = prev->headers_source;
2342 } 2343 }
2343 2344
2344 if (conf->headers_set_hash.buckets) { 2345 if (conf->headers_set_hash.buckets
2346 && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL)))
2347 {
2345 return NGX_OK; 2348 return NGX_OK;
2346 } 2349 }
2347 2350
2348 2351
2349 conf->headers_names = ngx_array_create(cf->pool, 4, sizeof(ngx_hash_key_t)); 2352 conf->headers_names = ngx_array_create(cf->pool, 4, sizeof(ngx_hash_key_t));