aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRJ <[email protected]>2013-08-15 10:41:56 +0100
committerRJ <[email protected]>2013-08-15 10:47:18 +0100
commit83d85e641aa1dbbb155299226c09c4ea92b8be3a (patch)
tree338e60cef1dfe4efe8eef6841e5986b710ef5324 /src
parent3b4c0588e9bb98307576f7d6e0b52ea434138e62 (diff)
downloadcowboy-83d85e641aa1dbbb155299226c09c4ea92b8be3a.tar.gz
cowboy-83d85e641aa1dbbb155299226c09c4ea92b8be3a.tar.bz2
cowboy-83d85e641aa1dbbb155299226c09c4ea92b8be3a.zip
add websocket_compress metadata
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_websocket.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl
index 073d7c6..6e86b90 100644
--- a/src/cowboy_websocket.erl
+++ b/src/cowboy_websocket.erl
@@ -121,12 +121,12 @@ websocket_extensions(State, Req) ->
deflate_frame = true,
inflate_state = Inflate,
deflate_state = Deflate
- }, Req2};
+ }, cowboy_req:set_meta(websocket_compress, true, Req2)};
_ ->
- {ok, State, Req2}
+ {ok, State, cowboy_req:set_meta(websocket_compress, false, Req2)}
end;
_ ->
- {ok, State, Req}
+ {ok, State, cowboy_req:set_meta(websocket_compress, false, Req)}
end.
-spec handler_init(#state{}, Req)