Mercurial > hg > nginx-vendor-0-7
diff src/http/ngx_http_upstream.c @ 498:ef5c97e49c35 NGINX_0_7_61
nginx 0.7.61
*) Bugfix: nginx could not be built on MacOSX 10.6. the bug had
appeared in 0.8.2.
*) Bugfix: nginx could not be built --without-http-cache; the bug had
appeared in 0.7.60.
*) Bugfix: a segmentation fault occurred in worker process, if a
backend 401 error was intercepted and the backend did not set the
"WWW-Authenticate" response header line.
Thanks to Eugene Mychlo.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 22 Jun 2009 00:00:00 +0400 |
parents | 116d5de7cbb6 |
children | ed3d382670c7 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1573,8 +1573,9 @@ ngx_http_upstream_intercept_errors(ngx_h if (err_page[i].status == status) { - if (status == NGX_HTTP_UNAUTHORIZED) { - + if (status == NGX_HTTP_UNAUTHORIZED + && u->headers_in.www_authenticate) + { h = ngx_list_push(&r->headers_out.headers); if (h == NULL) { @@ -4086,7 +4087,10 @@ ngx_http_upstream_hide_headers_hash(ngx_ conf->hide_headers_hash = prev->hide_headers_hash; if (conf->hide_headers_hash.buckets - && ((conf->cache == NULL) == (prev->cache == NULL))) +#if (NGX_HTTP_CACHE) + && ((conf->cache == NULL) == (prev->cache == NULL)) +#endif + ) { return NGX_OK; }