summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlwthiker <lwt@lwthiker.com>2022-07-17 19:11:33 +0300
committerDaniel Stenberg <daniel@haxx.se>2022-07-19 00:19:13 +0200
commitb9b6148c45a00d675d5bb261bf4cbb45468ad807 (patch)
tree007a06f8841651259780c49f945ec3a5b81e1ac0
parent0484127805dc2cb7c743b67e017a725b5369227d (diff)
downloadcurl-b9b6148c45a00d675d5bb261bf4cbb45468ad807.tar.gz
h2h3: fix 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. Closes #9170
-rw-r--r--lib/h2h3.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/h2h3.c b/lib/h2h3.c
index 9453cf55b..5d26bf0f2 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;
}