mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:23:31 +03:00
http: lowercase headernames for HTTP/2 and HTTP/3
Closes #4401 Fixes #4400
This commit is contained in:
parent
527461285f
commit
0023fce38d
5 changed files with 95 additions and 3 deletions
|
|
@ -2026,8 +2026,10 @@ static ssize_t http2_send(struct connectdata *conn, int sockindex,
|
|||
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/2 */
|
||||
Curl_strntolower((char *)hdbuf, hdbuf, nva[i].namelen);
|
||||
nva[i].name = (unsigned char *)hdbuf;
|
||||
}
|
||||
hdbuf = end + 1;
|
||||
while(*hdbuf == ' ' || *hdbuf == '\t')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue