mirror of
https://github.com/curl/curl.git
synced 2026-08-24 16:03:37 +03:00
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:
parent
b06cd929bd
commit
8c68887d2d
7 changed files with 13 additions and 13 deletions
|
|
@ -1548,7 +1548,7 @@ static CURLcode h3_stream_open(struct Curl_cfilter *cf,
|
|||
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, pnwritten);
|
||||
|
|
|
|||
|
|
@ -1900,7 +1900,7 @@ static CURLcode h3_stream_open(struct Curl_cfilter *cf,
|
|||
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, pnwritten);
|
||||
|
|
|
|||
|
|
@ -976,7 +976,7 @@ static CURLcode h3_open_stream(struct Curl_cfilter *cf,
|
|||
|
||||
DEBUGASSERT(stream);
|
||||
|
||||
result = Curl_h1_req_parse_read(&stream->h1, (const char *)buf, blen, NULL,
|
||||
result = Curl_h1_req_parse_read(&stream->h1, buf, blen, NULL,
|
||||
!data->state.http_ignorecustom ?
|
||||
data->set.str[STRING_CUSTOMREQUEST] : NULL,
|
||||
0, pnwritten);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue