aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_clear.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_clear.erl')
-rw-r--r--src/cowboy_clear.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cowboy_clear.erl b/src/cowboy_clear.erl
index cd8b2ca..7ff5d8b 100644
--- a/src/cowboy_clear.erl
+++ b/src/cowboy_clear.erl
@@ -40,9 +40,8 @@ init(Parent, Ref, Socket, Transport, Opts) ->
init(Parent, Ref, Socket, Transport, Opts, cowboy_http).
init(Parent, Ref, Socket, Transport, Opts, Protocol) ->
- {Handler, Type} = maps:get(stream_handler, Opts, {cowboy_stream_h, supervisor}),
- _ = case Type of
+ _ = case maps:get(connection_type, Opts, supervisor) of
worker -> ok;
supervisor -> process_flag(trap_exit, true)
end,
- Protocol:init(Parent, Ref, Socket, Transport, Opts, Handler).
+ Protocol:init(Parent, Ref, Socket, Transport, Opts).