From d2198675fbfd5de38125f88ca94e14e26573fb43 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 17 Oct 2020 02:46:41 +0800 Subject: [PATCH] =?UTF-8?q?httpRequest=E6=94=BE=E5=BC=80=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/toolfunc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/toolfunc.lua b/Zframework/toolfunc.lua index 5aafb146..a0ec006a 100644 --- a/Zframework/toolfunc.lua +++ b/Zframework/toolfunc.lua @@ -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})