Router: refactored variable pass.
Since the "pass" option supports both strings and variables, a generic nxt_var_t structure can be used in the configuration phase, and the "name" field in actions is redundant. No functional changes.
This commit is contained in:
@@ -141,6 +141,11 @@ static nxt_http_action_t *
|
||||
nxt_upstream_handler(nxt_task_t *task, nxt_http_request_t *r,
|
||||
nxt_http_action_t *action)
|
||||
{
|
||||
return nxt_upstream_proxy_handler(task, r,
|
||||
r->conf->upstreams[action->u.upstream_number]);
|
||||
nxt_upstream_t *u;
|
||||
|
||||
u = r->conf->upstreams[action->u.upstream_number];
|
||||
|
||||
nxt_debug(task, "upstream handler: \"%V\"", &u->name);
|
||||
|
||||
return nxt_upstream_proxy_handler(task, r, u);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user