parent
861c42c258
commit
1f1ef85eb0
2 changed files with 12 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ func parseUri*(uri: string, result: var Uri) =
|
|||
var i = 0
|
||||
|
||||
# Check if this is a reference URI (relative URI)
|
||||
let doubleSlash = uri.len > 1 and uri[1] == '/'
|
||||
let doubleSlash = uri.len > 1 and uri[0] == '/' and uri[1] == '/'
|
||||
if i < uri.len and uri[i] == '/':
|
||||
# Make sure `uri` doesn't begin with '//'.
|
||||
if not doubleSlash:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue