mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
Handle nested location lookup error
Some checks are pending
buildbot / buildbot (push) Waiting to run
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:
parent
005f9f5d4d
commit
df5269cc42
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue