diff options
author | Barry Pollard <barry_pollard@hotmail.com> | 2019-09-22 21:17:12 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-23 22:33:31 +0200 |
commit | 0023fce38d3bd6ee0e9b6ff8708fee1195057846 (patch) | |
tree | 32947dcf8bf1767126f2dfbfffeb150752a1450b /lib/vquic/ngtcp2.c | |
parent | 527461285f54bca59356e2c550d55ed9606e96d1 (diff) |
http: lowercase headernames for HTTP/2 and HTTP/3
Closes #4401
Fixes #4400
Diffstat (limited to 'lib/vquic/ngtcp2.c')
-rw-r--r-- | lib/vquic/ngtcp2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 5fd07f7e8..cdba49b75 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -1201,8 +1201,10 @@ static CURLcode http_request(struct connectdata *conn, const void *mem, nva[i].namelen = strlen((char *)nva[i].name); } else { - nva[i].name = (unsigned char *)hdbuf; nva[i].namelen = (size_t)(end - hdbuf); + /* Lower case the header name for HTTP/3 */ + Curl_strntolower((char *)hdbuf, hdbuf, nva[i].namelen); + nva[i].name = (unsigned char *)hdbuf; } nva[i].flags = NGHTTP3_NV_FLAG_NONE; hdbuf = end + 1; |