From: Yuzo Date: Thu, 22 Jan 2015 03:34:00 +0000 (+0800) Subject: add sock::readall() to ensure the response body is complete X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c30cf9abd4e1e46731e36552ae2f459a27c5cf46;p=oweals%2Fluci.git add sock::readall() to ensure the response body is complete --- diff --git a/libs/luci-lib-httpclient/luasrc/httpclient.lua b/libs/luci-lib-httpclient/luasrc/httpclient.lua index 94c2e9eca..c84a03b50 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)