mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
BUILD: fix declaration inside a scope block
This commit is contained in:
parent
8b15ba19c3
commit
d9e9066e71
@ -3956,13 +3956,13 @@ int http_send_name_header(struct http_txn *txn, struct http_msg *msg, struct buf
|
|||||||
|
|
||||||
struct hdr_ctx ctx;
|
struct hdr_ctx ctx;
|
||||||
|
|
||||||
ctx.idx = 0;
|
|
||||||
|
|
||||||
char *hdr_name = be->server_id_hdr_name;
|
char *hdr_name = be->server_id_hdr_name;
|
||||||
int hdr_name_len = be->server_id_hdr_len;
|
int hdr_name_len = be->server_id_hdr_len;
|
||||||
|
|
||||||
char *hdr_val;
|
char *hdr_val;
|
||||||
|
|
||||||
|
ctx.idx = 0;
|
||||||
|
|
||||||
while (http_find_header2(hdr_name, hdr_name_len, msg->sol, &txn->hdr_idx, &ctx)) {
|
while (http_find_header2(hdr_name, hdr_name_len, msg->sol, &txn->hdr_idx, &ctx)) {
|
||||||
/* remove any existing values from the header */
|
/* remove any existing values from the header */
|
||||||
http_remove_header2(msg, buf, &txn->hdr_idx, &ctx);
|
http_remove_header2(msg, buf, &txn->hdr_idx, &ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user