Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

accept options in arguments

  • Loading branch information...
commit 0f57a90384588727a5446bb1f5bf4e0be2d85780 1 parent 3ebf25c
@lalitkapoor lalitkapoor authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cookies.js
View
4 lib/cookies.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.