Update shttp.lua

This commit is contained in:
Ale32bit 2016-04-01 15:35:18 +02:00
parent bdc5910a50
commit 51db9f6aa0

View file

@ -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