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 94c2e9ecac34bf1cf86a6c447288d94667660309..c84a03b50a872ee11d714bffb5b5bab93dfee315 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)