diff options
author | François Perrad <francois.perrad@gadz.org> | 2017-03-16 16:57:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 16:57:17 +0100 |
commit | 16bb5487464be076136cc230e5b46754e03d559c (patch) | |
tree | 8d3ad3889a22d97ed0332baaf12e59e2dfa33677 | |
parent | 29e5ad610a780139c3e2fdb4faea0c785b7fd15a (diff) | |
download | luasocket-16bb5487464be076136cc230e5b46754e03d559c.tar.gz luasocket-16bb5487464be076136cc230e5b46754e03d559c.tar.bz2 luasocket-16bb5487464be076136cc230e5b46754e03d559c.zip |
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"
```
-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 |