From 1f36c1762eec9b4f4025e55aa139ebf145ddaf45 Mon Sep 17 00:00:00 2001 From: Wes Todd Date: Tue, 19 Nov 2024 14:36:23 -0600 Subject: [PATCH] fix(docs): add disclaimer about common report of being unable to parse set-cookie --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 54e1cda..1b60775 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ Parse a HTTP `Cookie` header string and returning an object of all cookie name-v The `str` argument is the string representing a `Cookie` header value and `options` is an optional object containing additional parsing options. +**NOTE:** This method does not parse the `set-cookie` header. It parses the `cookie` header. This means you cannot do `cookie.parse(cookie.serialize('name', 'value'))`. + ```js const cookies = cookie.parse("foo=bar; equation=E%3Dmc%5E2"); // { foo: 'bar', equation: 'E=mc^2' }