mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 15:46:18 +00:00
Fixed: Parsing url authority when path is empty
This commit is contained in:
parent
08a2506286
commit
0d3c81dde1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue