diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http_protocol.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 3e4116c..2847646 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -136,7 +136,7 @@ handler_init(Req, State=#state{handler={Handler, Opts}}) -> case catch Handler:init(Req, Opts) of {ok, Req, HandlerState} -> handler_loop(HandlerState, Req, State); - %% @todo {mode, active}; {upgrade_protocol, Module}; {error, Reason} + %% @todo {upgrade, transport, Module}; {upgrade, protocol, Module} {'EXIT', _Reason} -> error_terminate(500, State) end. @@ -147,7 +147,6 @@ handler_loop(HandlerState, Req, State=#state{handler={Handler, _Opts}}) -> case catch Handler:handle(Req, HandlerState) of {ok, Req2, HandlerState2} -> handler_terminate(HandlerState2, Req2, State); - %% @todo {mode, active} {'EXIT', _Reason} -> terminate(State) end. |