Skip to content

Commit

Permalink
Fix TypeError when calling request.cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiffany Low committed Dec 7, 2013
1 parent e0f2c41 commit aee3819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
// limitations under the License.

var optional = require('./lib/optional')
, Cookie = optional('tough-cookie')
, CookieJar = Cookie && Cookie.CookieJar
, cookie = optional('tough-cookie')
, Cookie = cookie && cookie.Cookie
, CookieJar = cookie && cookie.CookieJar
, cookieJar = CookieJar && new CookieJar

, copy = require('./lib/copy')
Expand Down

0 comments on commit aee3819

Please sign in to comment.