diff --git a/com/Net/GetExpl.lua b/com/Net/GetExpl.lua index 65b5219..e201b3b 100644 --- a/com/Net/GetExpl.lua +++ b/com/Net/GetExpl.lua @@ -1,4 +1,16 @@ -local resp = Net.Http.Get(true, "https://google.com") +local reqAddr + +if In.Params and In.Params.url then + reqAddr = In.Params.url +else + Out.Error = { + code = -32602, + message = "no url provided" + } + return +end + +local resp = Net.Http.Get(true, reqAddr) if resp then Out.Result.answer = { status = resp.status,