diff options
Diffstat (limited to 'examples/cookie/src/toppage_handler.erl')
-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 52e155b..7331906 100644 --- a/examples/cookie/src/toppage_handler.erl +++ b/examples/cookie/src/toppage_handler.erl @@ -10,7 +10,7 @@ init(Req, Opts) -> Req2 = cowboy_req:set_resp_cookie( <<"server">>, NewValue, [{path, <<"/">>}], Req), #{client := ClientCookie, server := ServerCookie} - = cowboy_req:match_cookies(Req2, [client, server]), + = cowboy_req:match_cookies([client, server], Req2), {ok, Body} = toppage_dtl:render([ {client, ClientCookie}, {server, ServerCookie} |