diff options
author | Loïc Hoguin <[email protected]> | 2016-08-10 14:33:43 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-10 14:33:43 +0200 |
commit | ae95e87eb1c352b96b43a431fd4693d7d80a4b64 (patch) | |
tree | efd4eead29a4a6ea9d9ab2952decfda5c10f4ffb /examples/cookie | |
parent | 00f3ae7d20fab7e1fb5707ac2f35cf1d003f9d39 (diff) | |
download | cowboy-ae95e87eb1c352b96b43a431fd4693d7d80a4b64.tar.gz cowboy-ae95e87eb1c352b96b43a431fd4693d7d80a4b64.tar.bz2 cowboy-ae95e87eb1c352b96b43a431fd4693d7d80a4b64.zip |
Update examples to the new interface
Diffstat (limited to 'examples/cookie')
-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 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([ |