mirror of
https://github.com/curl/curl.git
synced 2026-08-01 05:08:04 +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
|
|
@ -49,7 +49,7 @@ void Curl_h1_req_parse_init(struct h1_req_parser *parser, size_t max_line_len);
|
|||
void Curl_h1_req_parse_free(struct h1_req_parser *parser);
|
||||
|
||||
CURLcode Curl_h1_req_parse_read(struct h1_req_parser *parser,
|
||||
const char *buf, size_t buflen,
|
||||
const uint8_t *buf, size_t buflen,
|
||||
const char *scheme_default,
|
||||
const char *custom_method,
|
||||
int options, size_t *pnread);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue