From 431feb6f16477eb77f4e95d9fde2989248290481 Mon Sep 17 00:00:00 2001 From: zixun Date: Mon, 6 May 2019 14:16:04 +0800 Subject: [PATCH] bugfix #1007 --- lualib/http/tlshelper.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lualib/http/tlshelper.lua b/lualib/http/tlshelper.lua index 553acd9e..e25b2292 100644 --- a/lualib/http/tlshelper.lua +++ b/lualib/http/tlshelper.lua @@ -52,7 +52,9 @@ function tlshelper.readfunc(fd, tls_ctx) local ds = readfunc(sz) s = tls_ctx:read(ds) end - return read_buff .. s + s = read_buff .. s + read_buff = "" + return s else while #read_buff < sz do local ds = readfunc()