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 /README.md | |
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 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ handler could be written like this: -export([init/2, handle/2]). init(Req, Opts) -> - {ok, undefined}. + {ok, Req, undefined}. handle(Req, State) -> {reply, 200, [], "Hello World!"}. |