mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-04 04:22:47 +00:00
BUG/MINOR: h2: the TE header if present may only contain trailers
h2spec reports this issue which has no side effect for now, but is better cleared. To backport to 1.8.
This commit is contained in:
parent
68ed64148a
commit
d8d2ac75e8
3
src/h2.c
3
src/h2.c
@ -179,6 +179,9 @@ int h2_make_h1_request(struct http_hdr *list, char *out, int osize)
|
||||
if (isteq(list[idx].n, ist("host")))
|
||||
fields |= H2_PHDR_FND_HOST;
|
||||
|
||||
if (isteq(list[idx].n, ist("te")) && !isteq(list[idx].v, ist("trailers")))
|
||||
goto fail;
|
||||
|
||||
/* cookie requires special processing at the end */
|
||||
if (isteq(list[idx].n, ist("cookie"))) {
|
||||
list[idx].n.len = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user