Permalink
Browse files

accept options in arguments

  • Loading branch information...
1 parent 3ebf25c commit 0f57a90384588727a5446bb1f5bf4e0be2d85780 @lalitkapoor lalitkapoor committed Feb 6, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cookies.js
View
@@ -17,8 +17,8 @@ exports.parse = function(str) {
function RequestJar() {
this._jar = new CookieJar();
}
-RequestJar.prototype.setCookie = function(cookieOrStr, uri) {
- return this._jar.setCookieSync(cookieOrStr, uri);
+RequestJar.prototype.setCookie = function(cookieOrStr, uri, options) {
+ return this._jar.setCookieSync(cookieOrStr, uri, options || {});
};
RequestJar.prototype.getCookieString = function(uri) {
return this._jar.getCookieStringSync(uri);

0 comments on commit 0f57a90

Please sign in to comment.