From 51db9f6aa0e3dbda40e88601fb613694105d8f3a Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Fri, 1 Apr 2016 15:35:18 +0200 Subject: [PATCH] Update shttp.lua --- src/apis/shttp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/shttp.lua b/src/apis/shttp.lua index 40c1c07..272eced 100644 --- a/src/apis/shttp.lua +++ b/src/apis/shttp.lua @@ -14,7 +14,7 @@ function get(url, post, header, timeout) if ev[1] == "timer" and ev[2] == timer then return false, nil, nil --ikr... elseif ev[1] == "http_success" then - local source = ev[3].readAll() + local source = ev[3] ev[3].close() return true, source, ev[2] elseif ev[1] == "http_failure" then