aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_websocket.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2015-09-04 12:42:53 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2015-09-04 12:42:53 +0200
commitf56a9e400dd1857484c9898f0b746f0a44ad2ac8 (patch)
tree686acb299b0d67528fa11d531c9538b544ac9fa3 /src/ejabberd_websocket.erl
parentNew XEP-0198 option: "max_resume_timeout" (diff)
Pass stream management options defined in http listener to http-bind and websocket
Diffstat (limited to 'src/ejabberd_websocket.erl')
-rw-r--r--src/ejabberd_websocket.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ejabberd_websocket.erl b/src/ejabberd_websocket.erl
index c45d157bb..d922787b5 100644
--- a/src/ejabberd_websocket.erl
+++ b/src/ejabberd_websocket.erl
@@ -88,7 +88,8 @@ check(_Path, Headers) ->
end.
socket_handoff(LocalPath, #request{method = 'GET', ip = IP, q = Q, path = Path,
- headers = Headers, host = Host, port = Port},
+ headers = Headers, host = Host, port = Port,
+ opts = HOpts},
Socket, SockMod, Buf, _Opts, HandlerModule, InfoMsgFun) ->
case check(LocalPath, Headers) of
true ->
@@ -101,7 +102,8 @@ socket_handoff(LocalPath, #request{method = 'GET', ip = IP, q = Q, path = Path,
path = Path,
headers = Headers,
local_path = LocalPath,
- buf = Buf},
+ buf = Buf,
+ http_opts = HOpts},
connect(WS, HandlerModule);
_ ->