diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2017-03-20 13:58:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 13:58:33 -0300 |
commit | 865356f6ebe26d56bbee360ee82347f204fdc200 (patch) | |
tree | 8d3ad3889a22d97ed0332baaf12e59e2dfa33677 | |
parent | 29e5ad610a780139c3e2fdb4faea0c785b7fd15a (diff) | |
parent | 16bb5487464be076136cc230e5b46754e03d559c (diff) | |
download | luasocket-865356f6ebe26d56bbee360ee82347f204fdc200.tar.gz luasocket-865356f6ebe26d56bbee360ee82347f204fdc200.tar.bz2 luasocket-865356f6ebe26d56bbee360ee82347f204fdc200.zip |
Merge pull request #211 from fperrad/patch-1
fix for Lua 5.3 built without number / string conversion
-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 |