diff options
author | Loïc Hoguin <[email protected]> | 2016-08-11 11:25:58 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-11 11:25:58 +0200 |
commit | badc8d596eecb630c9e9a3e684966f2a17f7413b (patch) | |
tree | 4570907be0b5faf281f25ac3fe3287720cbb6ee1 /examples | |
parent | e2d5c268aa9dc7d37197560588fe9088741fb6d1 (diff) | |
download | cowboy-badc8d596eecb630c9e9a3e684966f2a17f7413b.tar.gz cowboy-badc8d596eecb630c9e9a3e684966f2a17f7413b.tar.bz2 cowboy-badc8d596eecb630c9e9a3e684966f2a17f7413b.zip |
Fix cookie example again
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cookie/src/toppage_handler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cookie/src/toppage_handler.erl b/examples/cookie/src/toppage_handler.erl index 9a67cb1..3df6045 100644 --- a/examples/cookie/src/toppage_handler.erl +++ b/examples/cookie/src/toppage_handler.erl @@ -10,7 +10,7 @@ init(Req0, Opts) -> Req1 = cowboy_req:set_resp_cookie(<<"server">>, NewValue, #{path => <<"/">>}, Req0), #{client := ClientCookie, server := ServerCookie} - = cowboy_req:match_cookies([{client, [], <<>>}, {server, [], <<>>}], Req2), + = cowboy_req:match_cookies([{client, [], <<>>}, {server, [], <<>>}], Req1), {ok, Body} = toppage_dtl:render([ {client, ClientCookie}, {server, ServerCookie} @@ -18,4 +18,4 @@ init(Req0, Opts) -> Req = cowboy_req:reply(200, #{ <<"content-type">> => <<"text/html">> }, Body, Req1), - {ok, Req1, Opts}. + {ok, Req, Opts}. |