diff options
author | Zhidao HONG <z.hong@f5.com> | 2021-07-26 15:00:46 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2021-07-26 15:00:46 +0800 |
commit | b47f1ac7ea3d80981485fd4ae82cd1c7fca3c337 (patch) | |
tree | 286e71c65595b475ae0dc210919158dc7f28d96d /src/nxt_http_route.c | |
parent | a3df6efc8d5994899a985080b574d9043ecd80f3 (diff) | |
download | unit-b47f1ac7ea3d80981485fd4ae82cd1c7fca3c337.tar.gz unit-b47f1ac7ea3d80981485fd4ae82cd1c7fca3c337.tar.bz2 |
Router: renamed nxt_http_proxy_create() as nxt_http_proxy_init().
No functional changes.
Diffstat (limited to 'src/nxt_http_route.c')
-rw-r--r-- | src/nxt_http_route.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c index 3cf78ec8..bed127c9 100644 --- a/src/nxt_http_route.c +++ b/src/nxt_http_route.c @@ -657,7 +657,6 @@ nxt_http_action_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, nxt_mp_t *mp; nxt_int_t ret; nxt_str_t name, *string; - nxt_conf_value_t *conf; nxt_http_action_conf_t acf; nxt_memzero(&acf, sizeof(acf)); @@ -681,23 +680,16 @@ nxt_http_action_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, } if (acf.proxy != NULL) { - conf = acf.proxy; - - } else { - conf = acf.pass; + return nxt_http_proxy_init(mp, action, &acf); } - nxt_conf_get_string(conf, &name); + nxt_conf_get_string(acf.pass, &name); string = nxt_str_dup(mp, &action->name, &name); if (nxt_slow_path(string == NULL)) { return NXT_ERROR; } - if (acf.proxy != NULL) { - return nxt_http_proxy_create(mp, action); - } - return NXT_OK; } |