Update shttp.lua
This commit is contained in:
parent
bdc5910a50
commit
51db9f6aa0
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ function get(url, post, header, timeout)
|
||||||
if ev[1] == "timer" and ev[2] == timer then
|
if ev[1] == "timer" and ev[2] == timer then
|
||||||
return false, nil, nil --ikr...
|
return false, nil, nil --ikr...
|
||||||
elseif ev[1] == "http_success" then
|
elseif ev[1] == "http_success" then
|
||||||
local source = ev[3].readAll()
|
local source = ev[3]
|
||||||
ev[3].close()
|
ev[3].close()
|
||||||
return true, source, ev[2]
|
return true, source, ev[2]
|
||||||
elseif ev[1] == "http_failure" then
|
elseif ev[1] == "http_failure" then
|
||||||
|
|
Loading…
Reference in a new issue