aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-01-29 12:57:33 +0100
committerLoïc Hoguin <[email protected]>2018-01-29 12:57:33 +0100
commitd27a373bc35d54e545d00942ada746c3e2ba497b (patch)
treee097fe96c6cba537f8872b88eb3d71fe6d76af4b
parent8d49ae3dda5b4274e55d2f4e5a5b4da0515b5a10 (diff)
downloadcowboy-d27a373bc35d54e545d00942ada746c3e2ba497b.tar.gz
cowboy-d27a373bc35d54e545d00942ada746c3e2ba497b.tar.bz2
cowboy-d27a373bc35d54e545d00942ada746c3e2ba497b.zip
Fix a small issue in the cowboy_req:parse_cookies manual
Thanks benbro!
-rw-r--r--doc/src/manual/cowboy_req.parse_cookies.asciidoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/manual/cowboy_req.parse_cookies.asciidoc b/doc/src/manual/cowboy_req.parse_cookies.asciidoc
index c174da4..25461c0 100644
--- a/doc/src/manual/cowboy_req.parse_cookies.asciidoc
+++ b/doc/src/manual/cowboy_req.parse_cookies.asciidoc
@@ -45,7 +45,7 @@ values are case sensitive binary strings.
[source,erlang]
----
Cookies = cowboy_req:parse_cookies(Req),
-{_, Token} = lists:keyfind(token, 1, Cookies).
+{_, Token} = lists:keyfind(<<"token">>, 1, Cookies).
----
== See also