http.request: add missing handle close (HTTP/0.9 case)

This commit is contained in:
johnd0e 2024-09-11 17:31:20 +02:00
parent 1fad162690
commit 87e52bd0b2

View File

@ -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