mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-24 01:39:49 +02:00
HTTP now has only one function.
This commit is contained in:
@ -115,7 +115,8 @@ end
|
||||
-----------------------------------------------------------------------------
|
||||
function parse(url, default)
|
||||
-- initialize default parameters
|
||||
local parsed = default or {}
|
||||
local parsed = {}
|
||||
for i,v in (default or parsed) do parsed[i] = v end
|
||||
-- empty url is parsed to nil
|
||||
if not url or url == "" then return nil, "invalid url" end
|
||||
-- remove whitespace
|
||||
|
Reference in New Issue
Block a user