Skip to content

Commit

Permalink
http.request: add missing handle close (HTTP/0.9 case)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnd0e committed Sep 11, 2024
1 parent 1fad162 commit 87e52bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87e52bd

Please sign in to comment.