HTTP: stored matched action in nxt_http_request_t.

No functional changes.
This commit is contained in:
Zhidao HONG
2023-08-09 14:36:16 +08:00
parent 497f08d15f
commit 9f04d6db63
5 changed files with 20 additions and 9 deletions

View File

@@ -696,6 +696,8 @@ nxt_http_static_next(nxt_task_t *task, nxt_http_request_t *r,
if (nxt_slow_path(r->log_route)) {
nxt_log(task, NXT_LOG_NOTICE, "\"fallback\" taken");
}
r->action = action->fallback;
nxt_http_request_action(task, r, action->fallback);
return;
}