Skip to content

Commit

Permalink
fix(docs): add disclaimer about common report of being unable to pars…
Browse files Browse the repository at this point in the history
…e set-cookie
  • Loading branch information
wesleytodd committed Nov 19, 2024
1 parent 94ba436 commit 1f36c17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit 1f36c17

Please sign in to comment.