http1: parse header from uint8_t buffer

To save casting the passed buffer when parsing HTTP/1 request
headers from an uint8_t buffer.

Closes #19742
This commit is contained in:
Stefan Eissing 2025-11-28 10:25:59 +01:00 committed by Daniel Stenberg
parent b06cd929bd
commit 8c68887d2d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 13 additions and 13 deletions

View file

@ -2277,7 +2277,7 @@ static CURLcode h2_submit(struct h2_stream_ctx **pstream,
if(result)
goto out;
result = Curl_h1_req_parse_read(&stream->h1, (const char *)buf, len, NULL,
result = Curl_h1_req_parse_read(&stream->h1, buf, len, NULL,
!data->state.http_ignorecustom ?
data->set.str[STRING_CUSTOMREQUEST] : NULL,
0, &nwritten);