mikeal/request — Issue #115: Cookie Handling kills Ha
Author: secoif
Created: 2011-11-24 18:20:33+00:00
State: open

Before, we were setting the cookies manually via the header:

```javascript
request.get({
url: http://someurl.com,
headers: {
'Cookie': sessionCookie
}
},
```

but since the introduction of the built-in cookie handling in request 2.2+, this has broken. I now have to do:

```javascript
var request = require('request').defaults({jar: false})
```

…in every file that used the headers mechanism.

Perhaps the cookie system shouldn't override the Cookie header if it already exists.