Skip to content

Commit 1f36c17

Browse files
committed
fix(docs): add disclaimer about common report of being unable to parse set-cookie
1 parent 94ba436 commit 1f36c17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Parse a HTTP `Cookie` header string and returning an object of all cookie name-v
2626
The `str` argument is the string representing a `Cookie` header value and `options` is an
2727
optional object containing additional parsing options.
2828

29+
**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'))`.
30+
2931
```js
3032
const cookies = cookie.parse("foo=bar; equation=E%3Dmc%5E2");
3133
// { foo: 'bar', equation: 'E=mc^2' }

0 commit comments

Comments
 (0)