aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cookie/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cookie/src')
-rw-r--r--examples/cookie/src/toppage_handler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cookie/src/toppage_handler.erl b/examples/cookie/src/toppage_handler.erl
index e795cf8..6af8dcc 100644
--- a/examples/cookie/src/toppage_handler.erl
+++ b/examples/cookie/src/toppage_handler.erl
@@ -7,8 +7,8 @@
init(Req, Opts) ->
NewValue = integer_to_list(rand:uniform(1000000)),
- Req2 = cowboy_req:set_resp_cookie(
- <<"server">>, NewValue, [{path, <<"/">>}], Req),
+ Req2 = cowboy_req:set_resp_cookie(<<"server">>, NewValue,
+ #{path => <<"/">>}, Req),
#{client := ClientCookie, server := ServerCookie}
= cowboy_req:match_cookies([{client, [], <<>>}, {server, [], <<>>}], Req2),
{ok, Body} = toppage_dtl:render([