diff options
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index 47583265d..b33782cc3 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -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') |