fix for Lua 5.3 built without number / string conversion

This kind of Lua could be built with this command:
```
    hererocks --lua 5.3 --cflags="-DLUA_NOCVTN2S -DLUA_NOCVTS2N"
```
master
François Perrad 2017-03-16 16:57:17 +01:00 committed by GitHub
parent 29e5ad610a
commit 16bb548746
1 changed files with 1 additions and 1 deletions

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