mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
uri_parser: allow empty host part even if userinfo and port exist
This commit is contained in:
parent
f9b8fadd85
commit
1040cf9862
@ -171,12 +171,6 @@ static char *_consume_authority(uri_parser_result_t *result, char *uri,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* do not allow empty host if userinfo or port are set */
|
||||
if ((result->host_len == 0) &&
|
||||
(result->userinfo || result->port)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* this includes the '/' */
|
||||
return authority_end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user