Skip to content

Commit

Permalink
Adding "auth=" prefix to the captureToken (while removing any that ma…
Browse files Browse the repository at this point in the history
…y exist)

This should fix the InvalidServerResponse responses from issue
#16
  • Loading branch information
charlesdaniel committed Sep 25, 2012
1 parent 268c1af commit 21a042a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/c2dm.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ util.inherits(C2DM, emitter);
exports.C2DM = C2DM;

C2DM.prototype.captureToken = function(err, token) {
token = 'auth=' + token.replace(/Auth=/i,'');
this.token = token;
};

Expand Down

0 comments on commit 21a042a

Please # to comment.