From 87e52bd0b2c398fd593172b07e9ff0687a0aef7f Mon Sep 17 00:00:00 2001 From: johnd0e <1838643+johnd0e@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:31:20 +0200 Subject: [PATCH] http.request: add missing handle close (HTTP/0.9 case) --- src/http.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http.lua b/src/http.lua index 259eb2b..98033d9 100644 --- a/src/http.lua +++ b/src/http.lua @@ -369,8 +369,10 @@ end -- if it is an HTTP/0.9 server, simply get the body and we are done if not code then h:receive09body(status, nreqt.sink, nreqt.step) + h:close() return 1, 200 elseif code == 408 then + h:close() return 1, code end local headers