mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 03:58:21 +01:00
http.request: add missing handle close (HTTP/0.9 case)
This commit is contained in:
parent
1fad162690
commit
87e52bd0b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user