httpRequest放开功能

This commit is contained in:
MrZ626
2020-10-17 02:46:41 +08:00
parent 1d78abf185
commit d2198675fb

View File

@@ -153,12 +153,12 @@ end
do--httpRequest
client=LOADLIB("NETlib")
if client then
function httpRequest(tick,url,method)
function httpRequest(tick,url,method,header,body)
local task,err=client.httpraw{
url=url,
method=method or"GET",
-- header={},
-- body="",
header=header,
body=body,
}
if task then
TASK.new(tick,{task=task,time=0})