diff options
Diffstat (limited to 'src/cowboy_http_protocol.erl')
-rw-r--r-- | src/cowboy_http_protocol.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index da10411..594699d 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -111,7 +111,7 @@ header(http_eoh, Req, State) -> -spec handler_init(Req::#http_req{}, State::#state{}) -> ok. handler_init(Req, State=#state{handler={Handler, Opts}}) -> case Handler:init(Req, Opts) of - {ok, HandlerState} -> + {ok, Req, HandlerState} -> handler_loop(HandlerState, Req, State) %% @todo {mode, active}; {upgrade_protocol, Module}; {error, Reason} end. |