mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 07:41:36 +02:00
MINOR: mux-h1: Remove useless case-insensitive comparisons
Header names from an HTX message are always in lower-case, so the comparison may be case-sensitive.
This commit is contained in:
parent
3e1f7f4a39
commit
b045bb221a
@ -1669,14 +1669,14 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
|
|||||||
if (*(n.ptr) == ':')
|
if (*(n.ptr) == ':')
|
||||||
goto skip_hdr;
|
goto skip_hdr;
|
||||||
|
|
||||||
if (isteqi(n, ist("transfer-encoding")))
|
if (isteq(n, ist("transfer-encoding")))
|
||||||
h1_parse_xfer_enc_header(h1m, v);
|
h1_parse_xfer_enc_header(h1m, v);
|
||||||
else if (isteqi(n, ist("content-length"))) {
|
else if (isteq(n, ist("content-length"))) {
|
||||||
/* Only skip C-L header with invalid value. */
|
/* Only skip C-L header with invalid value. */
|
||||||
if (h1_parse_cont_len_header(h1m, &v) < 0)
|
if (h1_parse_cont_len_header(h1m, &v) < 0)
|
||||||
goto skip_hdr;
|
goto skip_hdr;
|
||||||
}
|
}
|
||||||
else if (isteqi(n, ist("connection"))) {
|
else if (isteq(n, ist("connection"))) {
|
||||||
h1_parse_connection_header(h1m, &v);
|
h1_parse_connection_header(h1m, &v);
|
||||||
if (!v.len)
|
if (!v.len)
|
||||||
goto skip_hdr;
|
goto skip_hdr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user