# HG changeset patch # User Igor Sysoev # Date 1276875511 0 # Node ID 446f611b0a79a2917db2c91bcc56dc216893729d # Parent c0113b6648de9dc6c786adca48561ceef4db20b1 Test regex location if URI matches exactly to non-exact location. Revert a feature introduced in r2028. The feature confuses mostly, the only gain was not to test regex for a frequent request such as "/" in "locaiton /". diff -r c0113b6648de -r 446f611b0a79 src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c Fri Jun 18 15:17:07 2010 +0000 +++ b/src/http/ngx_http_core_module.c Fri Jun 18 15:38:31 2010 +0000 @@ -1590,9 +1590,14 @@ if (len == (size_t) node->len) { - r->loc_conf = (node->exact) ? node->exact->loc_conf: - node->inclusive->loc_conf; - return NGX_OK; + if (node->exact) { + r->loc_conf = node->exact->loc_conf; + return NGX_OK; + + } else { + r->loc_conf = node->inclusive->loc_conf; + return NGX_AGAIN; + } } /* len < node->len */