modify from http folder (#1470)

* delete unused var and add used arg

* use interface from stream
This commit is contained in:
zhuilang
2021-09-01 07:12:27 +08:00
committed by GitHub
parent 54e733a76f
commit 987bb3df47
4 changed files with 7 additions and 10 deletions

View File

@@ -77,7 +77,6 @@ function tlshelper.writefunc(fd, tls_ctx)
end
function tlshelper.readallfunc(fd, tls_ctx)
local readfunc = socket.readfunc(fd)
return function ()
local ds = socket.readall(fd)
local s = tls_ctx:read(ds)