diff options
-rw-r--r-- | src/url.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.lua b/src/url.lua index b59960a..eb094d5 100644 --- a/src/url.lua +++ b/src/url.lua | |||
@@ -193,7 +193,7 @@ function _M.build(parsed) | |||
193 | if string.find(authority, ":") then -- IPv6? | 193 | if string.find(authority, ":") then -- IPv6? |
194 | authority = "[" .. authority .. "]" | 194 | authority = "[" .. authority .. "]" |
195 | end | 195 | end |
196 | if parsed.port then authority = authority .. ":" .. parsed.port end | 196 | if parsed.port then authority = authority .. ":" .. base.tostring(parsed.port) end |
197 | local userinfo = parsed.userinfo | 197 | local userinfo = parsed.userinfo |
198 | if parsed.user then | 198 | if parsed.user then |
199 | userinfo = parsed.user | 199 | userinfo = parsed.user |