summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2024-04-30 14:30:24 +0800
committerZhidao HONG <z.hong@f5.com>2024-05-09 09:51:34 +0800
commit05a822947444a462bd21bf48ecb8c7328e4e156b (patch)
treec6669030845acab5c401e36b83c6af2c4c139c12 /src/nxt_h1proto.c
parentda43f4434a6ed257cf6e07ca7b4d00108ffeaf1b (diff)
downloadunit-05a822947444a462bd21bf48ecb8c7328e4e156b.tar.gz
unit-05a822947444a462bd21bf48ecb8c7328e4e156b.tar.bz2
http: Use consistent target in nxt_h1p_peer_header_send()
This change is required for the next commit, after which target and r->target may be different. Before the next patch, target and r->target would be the same. No functional changes. Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Zhidao HONG <z.hong@f5.com>
Diffstat (limited to 'src/nxt_h1proto.c')
-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 c3a65679..54fe7776 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -2306,7 +2306,7 @@ nxt_h1p_peer_header_send(nxt_task_t *task, nxt_http_peer_t *peer)
p = nxt_cpymem(p, r->method->start, r->method->length);
*p++ = ' ';
- p = nxt_cpymem(p, r->target.start, r->target.length);
+ p = nxt_cpymem(p, target.start, target.length);
p = nxt_cpymem(p, " HTTP/1.1\r\n", 11);
p = nxt_cpymem(p, "Connection: close\r\n", 19);