From 16bb5487464be076136cc230e5b46754e03d559c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Perrad?= Date: Thu, 16 Mar 2017 16:57:17 +0100 Subject: [PATCH] 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" ``` --- src/url.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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