diff options
author | Loïc Hoguin <[email protected]> | 2013-01-18 13:15:51 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-18 13:15:51 +0100 |
commit | efdf3a34333cef12616fcc020d36b64d1bdb11f7 (patch) | |
tree | 4032adae4b9247de15d760aeab5dfafc44c3bf43 | |
parent | 2f0d68362245535f121f65a2b1b1723d8453a661 (diff) | |
download | cowboy-efdf3a34333cef12616fcc020d36b64d1bdb11f7.tar.gz cowboy-efdf3a34333cef12616fcc020d36b64d1bdb11f7.tar.bz2 cowboy-efdf3a34333cef12616fcc020d36b64d1bdb11f7.zip |
Fix capitalize_hook example
-rw-r--r-- | guide/internals.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guide/internals.md b/guide/internals.md index 8acf75b..3179b9f 100644 --- a/guide/internals.md +++ b/guide/internals.md @@ -26,7 +26,7 @@ format the header names with the expected case. capitalize_hook(Status, Headers, Body, Req) -> Headers2 = [{cowboy_bstr:capitalize_token(N), V} || {N, V} <- Headers], - {ok, Req2} = cowboy_req:reply(State, Headers2, Body, Req), + {ok, Req2} = cowboy_req:reply(Status, Headers2, Body, Req), Req2. ``` |