Fixed: Parsing url authority when path is empty

This commit is contained in:
Nimetu 2016-05-14 12:53:09 +03:00
parent ec64ba53a7
commit 16b08bd66e

View file

@ -66,7 +66,7 @@ namespace NLGUI
// scan for authority
if (uri.substr(0, 2) == "//")
{
pos = uri.find("/", 3);
pos = uri.find_first_of("/?", 2);
authority = uri.substr(0, pos);
if (pos != npos)
uri = uri.substr(pos);