mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-04-08 09:56:43 +02:00
Merge 87e52bd0b2c398fd593172b07e9ff0687a0aef7f into 1fad1626900a128be724cba9e9c19a6b2fe2bf6b
This commit is contained in:
commit
43587d11f0
@ -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…
x
Reference in New Issue
Block a user