mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-29 09:41:21 +02:00
MINOR: h1: add headers to the list after controls, not before
This will ease removal/skipping of duplicates such as content-length.
This commit is contained in:
parent
e2c418e94b
commit
2ea6bb5c31
4
src/h1.c
4
src/h1.c
@ -1271,8 +1271,6 @@ int h1_headers_to_hdr_list(char *start, const char *stop,
|
|||||||
goto http_output_full;
|
goto http_output_full;
|
||||||
}
|
}
|
||||||
|
|
||||||
http_set_hdr(&hdr[hdr_count++], n, v);
|
|
||||||
|
|
||||||
if (isteqi(n, ist("transfer-encoding"))) {
|
if (isteqi(n, ist("transfer-encoding"))) {
|
||||||
h1m->flags &= ~H1_MF_CLEN;
|
h1m->flags &= ~H1_MF_CLEN;
|
||||||
h1m->flags |= H1_MF_CHNK;
|
h1m->flags |= H1_MF_CHNK;
|
||||||
@ -1285,6 +1283,8 @@ int h1_headers_to_hdr_list(char *start, const char *stop,
|
|||||||
else if (isteqi(n, ist("connection"))) {
|
else if (isteqi(n, ist("connection"))) {
|
||||||
h1_parse_connection_header(h1m, v);
|
h1_parse_connection_header(h1m, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
http_set_hdr(&hdr[hdr_count++], n, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
sol = ptr - start;
|
sol = ptr - start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user