Handle nested location lookup error
Some checks are pending
buildbot / buildbot (push) Waiting to run

Previously, when looking up a nested location after a prefix location
match, the nested regex or predicate match error could be ignored if
more regex or predicate locations were configured at the current level.
Now such error leads to request finalization.
This commit is contained in:
Roman Arutyunyan 2026-09-09 18:23:22 +04:00 • committed by Roman Arutyunyan
parent 005f9f5d4d
commit df5269cc42

View file

@ -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;
}