aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-18 01:52:46 +0100
committerLoïc Hoguin <[email protected]>2011-03-18 01:52:46 +0100
commit5e80e4baaca6ca866555a62db96b8e2623050521 (patch)
treef77a67548a7f06e5561855866822635d8eaebd1b /README.md
parentf53235549d7d15a6ceeb105530d93786af1f0d57 (diff)
downloadcowboy-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.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 876af0f..153d95c 100644
--- a/README.md
+++ b/README.md
@@ -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!"}.