mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-02-13 07:22:52 +01:00
return gsub... is not a nice ideia, since the thing returns several results.
This commit is contained in:
parent
27e6140a90
commit
29ce2303c8
@ -86,7 +86,8 @@ function Public.build_url(parsed)
|
|||||||
if authority then url = "//" .. authority .. url end
|
if authority then url = "//" .. authority .. url end
|
||||||
if parsed.scheme then url = parsed.scheme .. ":" .. url end
|
if parsed.scheme then url = parsed.scheme .. ":" .. url end
|
||||||
if parsed.fragment then url = url .. "#" .. parsed.fragment end
|
if parsed.fragment then url = url .. "#" .. parsed.fragment end
|
||||||
return gsub(url, "%s", "")
|
url = gsub(url, "%s", "")
|
||||||
|
return url
|
||||||
end
|
end
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user