shtylman/node-cookie — pull request #3 by SaltwaterC (2012-06-18 08:26:20+00:00)
Title: The comma separator breaks the date values

Hi,

Per RFC, the date value of the Expires value is something like: `Wed, 09 Jun 2021 10:18:14 GMT`. However, the current expression breaks the parsing:

```bash
node
> var cookie = require('cookie')
> console.log(cookie.parse('lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GMT'))
{ lang: 'en-US', Expires: 'Wed', '': '09 Jun 2021 10:18:14 GMT' }
# ^^^ OOPSIE
```

After the removal of the comma, it looks better:

```bash
> console.log(cookie.parse('lang=en-US; Expires=Wed, 09 Jun 2021 10:18:14 GMT'))
{ lang: 'en-US', Expires: 'Wed, 09 Jun 2021 10:18:14 GMT' }
```

The example was taken from the RFC itself (6265, [Section 3.1](http://tools.ietf.org/html/rfc6265#section-3.1)).

No unit test was harmed in the making of this fix.