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