add sock::readall() to ensure the response body is complete
[project/luci.git] / 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)