From 56148131a002cf7105766b30dda9db1a7b27c62f Mon Sep 17 00:00:00 2001 From: lwthiker Date: Sun, 17 Jul 2022 19:11:33 +0300 Subject: [PATCH] h2h3: Fix bug overriding the 'TE: Trailers' header A 'TE: Trailers' header is explicitly replaced by 'te: trailers' (lowercase) in Curl_pseudo_headers() when building the list of HTTP/2 or HTTP/3 headers. However, this is then replaced again by the original value due to a bug, resulting in the uppercased version being sent. Some HTTP/2 servers reject the whole HTTP/2 stream when this is the case. --- lib/h2h3.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/h2h3.c b/lib/h2h3.c index 9453cf55b7557a..5d26bf0f21487f 100644 --- a/lib/h2h3.c +++ b/lib/h2h3.c @@ -258,9 +258,6 @@ CURLcode Curl_pseudo_headers(struct Curl_easy *data, nva[i].valuelen = (end - hdbuf); } - nva[i].value = hdbuf; - nva[i].valuelen = (end - hdbuf); - ++i; }