mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_websocket: Serve HTTP in global context
This commit is contained in:
parent
c2562cb468
commit
eab76309e8
1 changed files with 10 additions and 9 deletions
|
@ -315,7 +315,6 @@ end
|
|||
|
||||
module:hook("c2s-read-timeout", keepalive, -0.9);
|
||||
|
||||
function module.add_host(module)
|
||||
module:depends("http");
|
||||
module:provides("http", {
|
||||
name = "websocket";
|
||||
|
@ -325,6 +324,8 @@ function module.add_host(module)
|
|||
["GET /"] = handle_request;
|
||||
};
|
||||
});
|
||||
|
||||
function module.add_host(module)
|
||||
module:hook("c2s-read-timeout", keepalive, -0.9);
|
||||
|
||||
if cross_domain ~= true then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue