mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-22 22:20:02 +00:00
http-parser: More type changes
This commit is contained in:
parent
59903b1fab
commit
d215cf2429
6
deps/http-parser/http_parser.c
vendored
6
deps/http-parser/http_parser.c
vendored
@ -367,8 +367,8 @@ size_t http_parser_execute (http_parser *parser,
|
|||||||
size_t to_read;
|
size_t to_read;
|
||||||
enum state state;
|
enum state state;
|
||||||
enum header_states header_state;
|
enum header_states header_state;
|
||||||
uint64_t index = parser->index;
|
size_t index = parser->index;
|
||||||
uint32_t nread = parser->nread;
|
size_t nread = parser->nread;
|
||||||
const char *header_field_mark, *header_value_mark, *url_mark;
|
const char *header_field_mark, *header_value_mark, *url_mark;
|
||||||
const char *matcher;
|
const char *matcher;
|
||||||
|
|
||||||
@ -1679,7 +1679,7 @@ size_t http_parser_execute (http_parser *parser,
|
|||||||
p += to_read - 1;
|
p += to_read - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (to_read == (size_t)parser->content_length) {
|
if ((signed)to_read == parser->content_length) {
|
||||||
state = s_chunk_data_almost_done;
|
state = s_chunk_data_almost_done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
deps/http-parser/http_parser.h
vendored
2
deps/http-parser/http_parser.h
vendored
@ -201,7 +201,7 @@ enum http_errno {
|
|||||||
|
|
||||||
struct http_parser {
|
struct http_parser {
|
||||||
/** PRIVATE **/
|
/** PRIVATE **/
|
||||||
uint32_t nread;
|
size_t nread;
|
||||||
int64_t content_length;
|
int64_t content_length;
|
||||||
|
|
||||||
unsigned char type;
|
unsigned char type;
|
||||||
|
Loading…
Reference in New Issue
Block a user