mikeal/request — pull request #1031 by ZJONSSON (2014-08-28 19:32:06+00:00)
Title: Explicitly use sync versions of cookie functions

Currently, the request module does not support asynchronous cookie stores and is restricted to use only the 'sync' cookie functions. The `request.jar()` returns a modified `tough-cookie` jar where the async functions have been reassigned as their synchronous counterparts. Passing on regular `tough-cookie` objects fails as request attempts to use the async functions as if they were synchronous.

In this pull request I have switched all calls to the cookie jar to reference the sync versions directly, allowing plain `tough-cookie` objects to be passed into the request object.