Skip to content

Commit

Permalink
removed newline from auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
jwieland committed May 5, 2011
1 parent b27fa28 commit cd411aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/c2dm.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ C2DM.prototype.login = function(cb) {
if (idx < 0) {
self.emit('token', data, null);
} else {
self.emit('token', null, data.substring(idx));
self.emit('token', null, data.substring(idx).replace(/(\n)+$/, ''));
}
});
});
Expand Down

0 comments on commit cd411aa

Please sign in to comment.