Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
changes key for cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagogak committed Feb 21, 2018
1 parent 22931c7 commit c3634f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Client.js
Expand Up @@ -42,9 +42,9 @@ function req(method, params) {
console.log('✓ ' + method + ' succeeded.');
var resp = (0, _Utils.tryJson)(body);
if (rest.keepCookie) {
var cookie = j.getCookieString(url);
var __cookie = j.getCookieString(url);
resolve(_extends({
cookie: cookie
__cookie: __cookie
}, resp));
} else {
resolve(resp);
Expand Down
4 changes: 2 additions & 2 deletions src/Client.js
Expand Up @@ -22,9 +22,9 @@ export function req( method, params ) {
console.log(`✓ ${method} succeeded.`);
const resp = tryJson(body);
if(rest.keepCookie) {
const cookie = j.getCookieString(url);
const __cookie = j.getCookieString(url);
resolve({
cookie,
__cookie,
...resp
});
} else {
Expand Down

0 comments on commit c3634f2

Please sign in to comment.