diff options
author | Loïc Hoguin <[email protected]> | 2011-03-18 01:52:46 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-18 01:52:46 +0100 |
commit | 5e80e4baaca6ca866555a62db96b8e2623050521 (patch) | |
tree | f77a67548a7f06e5561855866822635d8eaebd1b /src/cowboy_http_protocol.erl | |
parent | f53235549d7d15a6ceeb105530d93786af1f0d57 (diff) | |
download | cowboy-5e80e4baaca6ca866555a62db96b8e2623050521.tar.gz cowboy-5e80e4baaca6ca866555a62db96b8e2623050521.tar.bz2 cowboy-5e80e4baaca6ca866555a62db96b8e2623050521.zip |
Handler:init/2 should also return the Request in case it changed.
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. |