summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-06-20 13:22:13 +0800
committerZhidao HONG <z.hong@f5.com>2022-06-20 13:22:13 +0800
commit9d2672a701e3dcaee45bef9251ab55620d42fa42 (patch)
tree60c07c277c5ae2120c346718b976a3bd09dbf6a1 /src/nxt_h1proto.c
parent14dfa439eed1983693d7d128cc51c5e738a487d7 (diff)
downloadunit-9d2672a701e3dcaee45bef9251ab55620d42fa42.tar.gz
unit-9d2672a701e3dcaee45bef9251ab55620d42fa42.tar.bz2
Router: forwared header replacement.
Diffstat (limited to '')
-rw-r--r--src/nxt_h1proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index d3340774..1473aaa0 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -490,7 +490,7 @@ nxt_h1p_conn_request_init(nxt_task_t *task, void *obj, void *data)
r->remote = c->remote;
#if (NXT_TLS)
- r->tls = c->u.tls;
+ r->tls = (c->u.tls != NULL);
#endif
r->task = c->task;