diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 1bd8a55ab..504e49eb2 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1470,7 +1470,7 @@ ngx_http_core_find_location(ngx_http_request_t *r) rc = ngx_http_core_find_location(r); } - if (rc == NGX_OK || rc == NGX_DONE) { + if (rc == NGX_OK || rc == NGX_DONE || rc == NGX_ERROR) { return rc; }