summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2020-03-04 14:03:32 +0300
committerIgor Sysoev <igor@sysoev.ru>2020-03-04 14:03:32 +0300
commit643d4383fa7db466e1d80c7d8c350da4ec043f2b (patch)
tree298a2c3880426d676c553cb9628038b662fde773 /src/nxt_router.c
parentb214b7c690f9383f296f3d77dcf26755ec00bac3 (diff)
downloadunit-643d4383fa7db466e1d80c7d8c350da4ec043f2b.tar.gz
unit-643d4383fa7db466e1d80c7d8c350da4ec043f2b.tar.bz2
Refactored nxt_http_action.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 6ef4ee78..46a6b921 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -1904,8 +1904,9 @@ nxt_router_app_find(nxt_queue_t *queue, nxt_str_t *name)
}
-nxt_app_t *
-nxt_router_listener_application(nxt_router_temp_conf_t *tmcf, nxt_str_t *name)
+void
+nxt_router_listener_application(nxt_router_temp_conf_t *tmcf, nxt_str_t *name,
+ nxt_http_action_t *action)
{
nxt_app_t *app;
@@ -1915,7 +1916,8 @@ nxt_router_listener_application(nxt_router_temp_conf_t *tmcf, nxt_str_t *name)
app = nxt_router_app_find(&tmcf->previous, name);
}
- return app;
+ action->u.application = app;
+ action->handler = nxt_http_application_handler;
}