mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 07:41:36 +02:00
MINOR: h3: remove transfer-encoding header
According to HTTP/3 specification, transfer-encoding header must not be used in HTTP/3 messages. Remove it when converting HTX responses to HTTP/3.
This commit is contained in:
parent
4ac6d37333
commit
ffafb3d2c2
8
src/h3.c
8
src/h3.c
@ -468,6 +468,14 @@ static int h3_resp_headers_send(struct qcs *qcs, struct htx *htx)
|
|||||||
if (isteq(list[hdr].n, ist("")))
|
if (isteq(list[hdr].n, ist("")))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* draft-ietf-quic-http34 4.1. HTTP Message Exchanges
|
||||||
|
* Transfer codings (see Section 6.1 of [HTTP11]) are not
|
||||||
|
* defined for HTTP/3; the Transfer-Encoding header field MUST
|
||||||
|
* NOT be used.
|
||||||
|
*/
|
||||||
|
if (isteq(list[hdr].n, ist("transfer-encoding")))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (qpack_encode_header(&headers_buf, list[hdr].n, list[hdr].v))
|
if (qpack_encode_header(&headers_buf, list[hdr].n, list[hdr].v))
|
||||||
ABORT_NOW();
|
ABORT_NOW();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user