Fixed: Parsing url authority when path is empty

--HG--
branch : develop
feature/pipeline-tools
Nimetu 9 years ago
parent 8aa2a3ced6
commit ae46d76d88

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

Loading…
Cancel
Save