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

@@ -1573,6 +1573,11 @@ nxt_http_route_handler(nxt_task_t *task, nxt_http_request_t *r,
}
if (action != NULL) {
if (action != NXT_HTTP_ACTION_ERROR) {
r->action = action;
}
return action;
}
}