aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-03-02 14:31:02 +0100
committerLoïc Hoguin <[email protected]>2020-03-06 11:01:21 +0100
commit4b9da5965cd3c8fe93639eddcb8973407f86bbb7 (patch)
tree4adbc5e5b128591a25632eec074e6108fb12abcd /doc
parentbbb6e57123ca12ad18e88f4a6e28b866afa3ed5a (diff)
downloadcowlib-4b9da5965cd3c8fe93639eddcb8973407f86bbb7.tar.gz
cowlib-4b9da5965cd3c8fe93639eddcb8973407f86bbb7.tar.bz2
cowlib-4b9da5965cd3c8fe93639eddcb8973407f86bbb7.zip
Add cow_cookie:parse_set_cookie/1
Also do minor fixes to cow_cookie:parse_cookie/1. There is a potential incompatibility from these changes, because now a header "Cookie: foo" will be translated to a cookie with an empty name and value "foo", instead of cookie name "foo" and empty value. Also cookie names starting with $ are no longer ignored. These fixes are necessary for the cookies test suite from Web platform tests to work, and match the upcoming cookie RFC.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/manual/cow_cookie.parse_cookie.asciidoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/manual/cow_cookie.parse_cookie.asciidoc b/doc/src/manual/cow_cookie.parse_cookie.asciidoc
index 0b7393e..2975932 100644
--- a/doc/src/manual/cow_cookie.parse_cookie.asciidoc
+++ b/doc/src/manual/cow_cookie.parse_cookie.asciidoc
@@ -28,6 +28,10 @@ An exception is thrown in the event of a parse error.
== Changelog
+* *2.9*: Fixes to the parser may lead to potential incompatibilities.
+ A cookie name starting with `$` is no longer ignored.
+ A cookie without a `=` will be parsed as the value of
+ the cookie named `<<>>` (empty name).
* *1.0*: Function introduced.
== Examples