merge r2954:

fix segfault if there is error_page 401, proxy_intercept_errors is on
and backend does not return "WWW-Authenticate" header
This commit is contained in:
Igor Sysoev 2009-06-22 09:32:03 +00:00
parent d15bfa03e6
commit 0fd29f9f30
1 changed files with 3 additions and 2 deletions

View File

@ -1573,8 +1573,9 @@ ngx_http_upstream_intercept_errors(ngx_http_request_t *r,
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) {