Skip to content

Commit

Permalink
when setting defaults, the wrapper adds the jar method assuming it ha…
Browse files Browse the repository at this point in the history
…s the same signature as get, meaning undefined is passed into initParams, which subsequently fails. now passing jar function directly as it has no need of defaults anyway seeing as it only creates a new cookie jar
  • Loading branch information
StuartHarris committed Sep 10, 2012
1 parent 0d98e5b commit 64a4448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ request.defaults = function (options, requester) {
de.head = def(request.head)
de.del = def(request.del)
de.cookie = def(request.cookie)
de.jar = def(request.jar)
de.jar = request.jar
return de
}

Expand Down

0 comments on commit 64a4448

Please sign in to comment.