mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 15:51:24 +02:00
MINOR: checks: Skip some headers for http-check send rules
Connection, content-length and transfer-encoding headers are ignored for http-check send rules. For now, the keep-alive is not supported and the "connection: close" header is always added to the request. And the content-length header is automatically added.
This commit is contained in:
parent
13ec87b4c4
commit
7d765dbe9a
@ -3785,10 +3785,15 @@ static struct tcpcheck_rule *parse_tcpcheck_send_http(char **args, int cur_arg,
|
|||||||
}
|
}
|
||||||
host_hdr = i;
|
host_hdr = i;
|
||||||
}
|
}
|
||||||
|
else if (strcasecmp(args[cur_arg+1], "connection") == 0 ||
|
||||||
|
strcasecmp(args[cur_arg+1], "content-length") == 0 ||
|
||||||
|
strcasecmp(args[cur_arg+1], "transfer-encoding") == 0)
|
||||||
|
goto skip_hdr;
|
||||||
|
|
||||||
hdrs[i].n = ist2(args[cur_arg+1], strlen(args[cur_arg+1]));
|
hdrs[i].n = ist2(args[cur_arg+1], strlen(args[cur_arg+1]));
|
||||||
hdrs[i].v = ist2(args[cur_arg+2], strlen(args[cur_arg+2]));
|
hdrs[i].v = ist2(args[cur_arg+2], strlen(args[cur_arg+2]));
|
||||||
i++;
|
i++;
|
||||||
|
skip_hdr:
|
||||||
cur_arg += 2;
|
cur_arg += 2;
|
||||||
}
|
}
|
||||||
else if (strcmp(args[cur_arg], "body") == 0) {
|
else if (strcmp(args[cur_arg], "body") == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user