Permalink
Browse files

when setting defaults, the wrapper adds the jar method assuming it ha…

…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...
1 parent 0d98e5b commit 64a44488ac8c792a1f548f305fc5c61efe0d77fb @StuartHarris StuartHarris committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.js
View
2 main.js
@@ -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
}

0 comments on commit 64a4448

Please sign in to comment.