mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08: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 it is an HTTP/0.9 server, simply get the body and we are done
|
||||||
if not code then
|
if not code then
|
||||||
h:receive09body(status, nreqt.sink, nreqt.step)
|
h:receive09body(status, nreqt.sink, nreqt.step)
|
||||||
|
h:close()
|
||||||
return 1, 200
|
return 1, 200
|
||||||
elseif code == 408 then
|
elseif code == 408 then
|
||||||
|
h:close()
|
||||||
return 1, code
|
return 1, code
|
||||||
end
|
end
|
||||||
local headers
|
local headers
|
||||||
|
Loading…
Reference in New Issue
Block a user