summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-httpclient/luasrc/httpclient.lua
diff options
context:
space:
mode:
authorYuzo <hyzgog@gmail.com>2015-01-22 11:34:00 +0800
committerYuzo <hyzgog@gmail.com>2015-01-22 11:34:00 +0800
commitc30cf9abd4e1e46731e36552ae2f459a27c5cf46 (patch)
treeea7a8f0d0c7d39ea63f92590eae27b60c40c26d1 /libs/luci-lib-httpclient/luasrc/httpclient.lua
parent0d541a4cbdeb51ac23d4a1ce7bc561e1c0790c77 (diff)
add sock::readall() to ensure the response body is complete
Diffstat (limited to 'libs/luci-lib-httpclient/luasrc/httpclient.lua')
-rw-r--r--libs/luci-lib-httpclient/luasrc/httpclient.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/luci-lib-httpclient/luasrc/httpclient.lua b/libs/luci-lib-httpclient/luasrc/httpclient.lua
index 94c2e9ecac..c84a03b50a 100644
--- a/libs/luci-lib-httpclient/luasrc/httpclient.lua
+++ b/libs/luci-lib-httpclient/luasrc/httpclient.lua
@@ -323,7 +323,7 @@ function request_raw(uri, options)
end
end
- return response.code, response, linesrc(true), sock
+ return response.code, response, linesrc(true)..sock:readall(), sock
end
function cookie_parse(cookiestr)