mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 19:42:39 +08:00
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:
parent
bd9eda9986
commit
ad0d2fced4
@ -1606,8 +1606,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user