mirror of
https://github.com/hufrea/byedpi.git
synced 2025-03-14 04:48:53 +03:00
Fix http parser
This commit is contained in:
parent
5f60a671a3
commit
82e5229df0
1 changed files with 5 additions and 2 deletions
|
@ -177,8 +177,11 @@ int parse_http(char *buffer, size_t bsize, char **hs, uint16_t *port)
|
|||
h_end = 0;
|
||||
do {
|
||||
h = memchr(h, ':', l_end - h);
|
||||
if (h) h_end = h;
|
||||
} while (h);
|
||||
if (h) {
|
||||
h_end = h;
|
||||
h++;
|
||||
}
|
||||
} while (h && h < l_end);
|
||||
}
|
||||
|
||||
if (!h_end) {
|
||||
|
|
Loading…
Add table
Reference in a new issue