Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Adding "auth=" prefix to the captureToken (while removing any that may exist) #22

Merged
merged 1 commit into from over 1 year ago

2 participants

Charles Daniel Yury Proshchenko
Charles Daniel

This should fix the InvalidServerResponse responses from issue
#16

Charles Daniel Adding "auth=" prefix to the captureToken (while removing any that ma…
…y exist)

This should fix the InvalidServerResponse responses from issue
SpeCT#16
21a042a
Yury Proshchenko SpeCT merged commit 5547218 into from October 27, 2012
Yury Proshchenko SpeCT closed this October 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 25, 2012
Charles Daniel Adding "auth=" prefix to the captureToken (while removing any that ma…
…y exist)

This should fix the InvalidServerResponse responses from issue
SpeCT#16
21a042a
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  lib/c2dm.js
1  lib/c2dm.js
@@ -38,6 +38,7 @@ util.inherits(C2DM, emitter);
38 38
 exports.C2DM = C2DM;
39 39
 
40 40
 C2DM.prototype.captureToken = function(err, token) {
  41
+    token = 'auth=' + token.replace(/Auth=/i,'');
41 42
     this.token = token;
42 43
 };
43 44
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.