aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cookie/src/toppage_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-10-04 13:21:16 +0300
committerLoïc Hoguin <[email protected]>2014-10-04 13:21:16 +0300
commit21d9ebe33b3eaf65a4118fc5c3e7364e64d63769 (patch)
tree5a679864c47cd50f55ad06831a36a92a03d3ad59 /examples/cookie/src/toppage_handler.erl
parent4bc8e330fa239d1ade18a5d75ea018f1a954bfb3 (diff)
downloadcowboy-21d9ebe33b3eaf65a4118fc5c3e7364e64d63769.tar.gz
cowboy-21d9ebe33b3eaf65a4118fc5c3e7364e64d63769.tar.bz2
cowboy-21d9ebe33b3eaf65a4118fc5c3e7364e64d63769.zip
Reverse the order of arguments of match_* functions
Wasn't following the same order as the rest of the module.
Diffstat (limited to 'examples/cookie/src/toppage_handler.erl')
-rw-r--r--examples/cookie/src/toppage_handler.erl2
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}