Crash on initial load.

Fixes #20
This commit is contained in:
Robin Davies
2022-03-10 11:22:42 -05:00
parent 3737afb52b
commit 0319cc0588
7 changed files with 97 additions and 22 deletions
+3
View File
@@ -140,6 +140,9 @@ void uri::set_()
{
authority_end = p;
port_start = p+1;
} else if (c == ']') // ignore colon inside ipv6 address.
{
port_start = nullptr;
}
if (c == '/' || c == '?' || c == '#')
{