Skip to content

Commit

Permalink
Update uri.nim (#19148) [backport:1.0]
Browse files Browse the repository at this point in the history
(cherry picked from commit a3ef5df)
  • Loading branch information
dom96 authored and narimiran committed Dec 11, 2021
1 parent b057bb6 commit f577229
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 @@ -163,6 +163,8 @@ proc parseAuthority(authority: string, result: var Uri) =
inIPv6 = true
of ']':
inIPv6 = false
of '\0':
break
else:
if inPort:
result.port.add(authority[i])
Expand Down

0 comments on commit f577229

Please sign in to comment.