add sock::readall() to ensure the response body is complete
authorYuzo <hyzgog@gmail.com>
Thu, 22 Jan 2015 03:34:00 +0000 (11:34 +0800)
committerYuzo <hyzgog@gmail.com>
Thu, 22 Jan 2015 03:34:00 +0000 (11:34 +0800)
libs/luci-lib-httpclient/luasrc/httpclient.lua

index 94c2e9e..c84a03b 100644 (file)
@@ -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)