Skip to content

Commit

Permalink
http: Use consistent target in nxt_h1p_peer_header_send()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Zhidao HONG <[email protected]>
  • Loading branch information
hongzhidao committed May 9, 2024
1 parent da43f44 commit 05a8229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nxt_h1proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 05a8229

Please sign in to comment.