mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 22:35:39 +00:00
Fix http parser
This commit is contained in:
parent
5f60a671a3
commit
82e5229df0
@ -177,8 +177,11 @@ int parse_http(char *buffer, size_t bsize, char **hs, uint16_t *port)
|
|||||||
h_end = 0;
|
h_end = 0;
|
||||||
do {
|
do {
|
||||||
h = memchr(h, ':', l_end - h);
|
h = memchr(h, ':', l_end - h);
|
||||||
if (h) h_end = h;
|
if (h) {
|
||||||
} while (h);
|
h_end = h;
|
||||||
|
h++;
|
||||||
|
}
|
||||||
|
} while (h && h < l_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!h_end) {
|
if (!h_end) {
|
||||||
|
Loading…
Reference in New Issue
Block a user