From 335a955abd14f5cdeb86823fc9eeb934a4e07264 Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 12 Sep 2016 01:24:39 -0400 Subject: [PATCH] Fixed cookies not being set --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index aa8bbfc..03a74b7 100644 --- a/index.js +++ b/index.js @@ -218,9 +218,9 @@ SteamCommunity.prototype.oAuthLogin = function(steamguard, token, callback) { SteamCommunity.prototype._setCookie = function(cookie, secure) { var protocol = secure ? "https" : "http"; - this._jar.setCookie(cookie, protocol + "://steamcommunity.com"); - this._jar.setCookie(cookie, protocol + "://store.steampowered.com"); - this._jar.setCookie(cookie, protocol + "://help.steampowered.com"); + this._jar.setCookie(cookie.clone(), protocol + "://steamcommunity.com"); + this._jar.setCookie(cookie.clone(), protocol + "://store.steampowered.com"); + this._jar.setCookie(cookie.clone(), protocol + "://help.steampowered.com"); }; SteamCommunity.prototype.setCookies = function(cookies) {