mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
uri_parser: do not parse path if end-of-uri
This commit is contained in:
parent
1040cf9862
commit
6f13325a52
@ -231,8 +231,12 @@ static int _parse_absolute(uri_parser_result_t *result, char *uri,
|
||||
}
|
||||
}
|
||||
|
||||
/* parsing the path, starting with '/' */
|
||||
return _parse_relative(result, uri, uri_end);
|
||||
/* is there more to parse after authority? */
|
||||
if (uri < uri_end) {
|
||||
/* parsing the path, starting with '/' */
|
||||
return _parse_relative(result, uri, uri_end);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool uri_parser_is_absolute(const char *uri, size_t uri_len)
|
||||
|
Loading…
Reference in New Issue
Block a user