Merge pull request #211 from fperrad/patch-1

fix for Lua 5.3 built without number / string conversion
This commit is contained in:
Diego Nehab 2017-03-20 13:58:33 -03:00 committed by GitHub
commit 865356f6eb

View File

@ -193,7 +193,7 @@ function _M.build(parsed)
if string.find(authority, ":") then -- IPv6?
authority = "[" .. authority .. "]"
end
if parsed.port then authority = authority .. ":" .. parsed.port end
if parsed.port then authority = authority .. ":" .. base.tostring(parsed.port) end
local userinfo = parsed.userinfo
if parsed.user then
userinfo = parsed.user