diff options
Diffstat (limited to 'examples/cookie/src')
-rw-r--r-- | examples/cookie/src/toppage_handler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cookie/src/toppage_handler.erl b/examples/cookie/src/toppage_handler.erl index 3df6045..38952ef 100644 --- a/examples/cookie/src/toppage_handler.erl +++ b/examples/cookie/src/toppage_handler.erl @@ -8,7 +8,7 @@ init(Req0, Opts) -> NewValue = integer_to_list(rand:uniform(1000000)), Req1 = cowboy_req:set_resp_cookie(<<"server">>, NewValue, - #{path => <<"/">>}, Req0), + Req0, #{path => <<"/">>}), #{client := ClientCookie, server := ServerCookie} = cowboy_req:match_cookies([{client, [], <<>>}, {server, [], <<>>}], Req1), {ok, Body} = toppage_dtl:render([ |