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

@@ -560,11 +560,9 @@ nxt_http_request_action(nxt_task_t *task, nxt_http_request_t *r,
if (nxt_fast_path(action != NULL)) {
do {
if (action->rewrite != NULL) {
ret = nxt_http_rewrite(task, r, action);
if (nxt_slow_path(ret != NXT_OK)) {
break;
}
ret = nxt_http_rewrite(task, r);
if (nxt_slow_path(ret != NXT_OK)) {
break;
}
action = action->handler(task, r, action);