Skip to content

Commit

Permalink
Update uri.nim (nim-lang#19148) [backport:1.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 authored and PMunch committed Mar 28, 2022
1 parent d134bde commit 6a95c6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pure/uri.nim
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ func parseAuthority(authority: string, result: var Uri) =
result.isIpv6 = true
of ']':
inIPv6 = false
of '\0':
break
else:
if inPort:
result.port.add(authority[i])
Expand Down

0 comments on commit 6a95c6a

Please sign in to comment.