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 /".
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 */