Skip to content

Commit

Permalink
Returning only cookie value, not header key
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 31, 2019
1 parent 6b6ca79 commit 2433813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ let session = {
}

// Build the cookie
let cookie = 'Set-Cookie: ' + cookieName + '=' + this._userToken + '; Domain=' + this._cookieDomain + '; path=/;'
let cookie = cookieName + '=' + this._userToken + '; Domain=' + this._cookieDomain + '; path=/;'
if (this.expirationInDays > 0) {
let d = new Date()
d.setTime(d.getTime() + 24 * 60 * 60 * 1000 * this.expirationInDays)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tonicpow-js",
"version": "0.1.18",
"version": "0.1.19",
"description": "TonicPow API Library in JS - https://docs.tonicpow.com",
"main": "lib/api.js",
"repository": {
Expand Down

0 comments on commit 2433813

Please sign in to comment.