From 05a822947444a462bd21bf48ecb8c7328e4e156b Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Tue, 30 Apr 2024 14:30:24 +0800 Subject: 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 Signed-off-by: Zhidao HONG --- src/nxt_h1proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit