0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Fix capitalize_hook example

This commit is contained in:
Loïc Hoguin 2013-01-18 13:15:51 +01:00
parent 2f0d683622
commit efdf3a3433

View file

@ -26,7 +26,7 @@ format the header names with the expected case.
capitalize_hook(Status, Headers, Body, Req) -> capitalize_hook(Status, Headers, Body, Req) ->
Headers2 = [{cowboy_bstr:capitalize_token(N), V} Headers2 = [{cowboy_bstr:capitalize_token(N), V}
|| {N, V} <- Headers], || {N, V} <- Headers],
{ok, Req2} = cowboy_req:reply(State, Headers2, Body, Req), {ok, Req2} = cowboy_req:reply(Status, Headers2, Body, Req),
Req2. Req2.
``` ```