From: lisaac Date: Thu, 26 Aug 2021 00:57:55 +0000 (+0800) Subject: luci-lib-docker: fix chunked decode X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=54a55e8371efc3c5b3b91f32e2c01983af2e00f4;p=openwrt-luci.git luci-lib-docker: fix chunked decode Signed-off-by: Ren Zongjia --- diff --git a/collections/luci-lib-docker/luasrc/docker.lua b/collections/luci-lib-docker/luasrc/docker.lua index cd9bf132d1..346b0ef235 100644 --- a/collections/luci-lib-docker/luasrc/docker.lua +++ b/collections/luci-lib-docker/luasrc/docker.lua @@ -21,7 +21,7 @@ local chunksource = function(sock, buffer) local output local _, endp, count = buffer:find("^([0-9a-fA-F]+)\r\n") - if not count then + while not count do local newblock, code = sock:recv(1024) if not newblock then return nil, code