diff options
author | Jesper Louis Andersen <[email protected]> | 2019-04-02 15:37:57 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-04-02 15:40:05 +0200 |
commit | b86e2839bc52d49c0398af13feb5f225ef64f507 (patch) | |
tree | f5259641bdb8565519d977fa87194d7746a606d2 /doc/src/manual | |
parent | 9edfef34b2b9e8b924aaac55fbc3a0d68d3be3be (diff) | |
download | cowboy-b86e2839bc52d49c0398af13feb5f225ef64f507.tar.gz cowboy-b86e2839bc52d49c0398af13feb5f225ef64f507.tar.bz2 cowboy-b86e2839bc52d49c0398af13feb5f225ef64f507.zip |
Fix calling convention for set_resp_cookie/3
If not providing optional values, they are set to `#{}` and
are the last parameter according to the source code. Reflect
this in the documentation.
Diffstat (limited to 'doc/src/manual')
-rw-r--r-- | doc/src/manual/cowboy_req.set_resp_cookie.asciidoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc b/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc index 2831059..a4bfae7 100644 --- a/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc +++ b/doc/src/manual/cowboy_req.set_resp_cookie.asciidoc @@ -9,7 +9,7 @@ cowboy_req:set_resp_cookie - Set a cookie [source,erlang] ---- set_resp_cookie(Name, Value, Req :: cowboy_req:req()) - -> set_resp_cookie(Name, Value, [], Req) + -> set_resp_cookie(Name, Value, Req, #{}) set_resp_cookie(Name, Value, Req :: cowboy_req:req(), Opts) -> Req |