mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
fix router receiving
This commit is contained in:
parent
102ee55183
commit
ed7f935578
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ local HttpRequest = {__index={
|
||||||
}}
|
}}
|
||||||
|
|
||||||
network.http_open = function(port, handler, timeout_ms)
|
network.http_open = function(port, handler, timeout_ms)
|
||||||
if type(handler) ~= "function" then
|
if handler == nil then
|
||||||
error "http server cannot be opened without a request handler"
|
error "http server cannot be opened without a request handler"
|
||||||
end
|
end
|
||||||
local socket = setmetatable({id=http_open(port, timeout_ms or 60000)}, ServerSocket)
|
local socket = setmetatable({id=http_open(port, timeout_ms or 60000)}, ServerSocket)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue