diff options
author | Yuzo <hyzgog@gmail.com> | 2015-01-22 11:34:00 +0800 |
---|---|---|
committer | Yuzo <hyzgog@gmail.com> | 2015-01-22 11:34:00 +0800 |
commit | c30cf9abd4e1e46731e36552ae2f459a27c5cf46 (patch) | |
tree | ea7a8f0d0c7d39ea63f92590eae27b60c40c26d1 /libs/luci-lib-httpclient/luasrc/httpclient.lua | |
parent | 0d541a4cbdeb51ac23d4a1ce7bc561e1c0790c77 (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.lua | 2 |
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) |