diff options
author | Igor Sysoev <igor@sysoev.ru> | 2020-03-04 14:03:32 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2020-03-04 14:03:32 +0300 |
commit | 643d4383fa7db466e1d80c7d8c350da4ec043f2b (patch) | |
tree | 298a2c3880426d676c553cb9628038b662fde773 /src/nxt_router.c | |
parent | b214b7c690f9383f296f3d77dcf26755ec00bac3 (diff) | |
download | unit-643d4383fa7db466e1d80c7d8c350da4ec043f2b.tar.gz unit-643d4383fa7db466e1d80c7d8c350da4ec043f2b.tar.bz2 |
Refactored nxt_http_action.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_router.c | 8 |
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; } |