From 6d34c1323be0156907aeaeaea87bde3499b45683 Mon Sep 17 00:00:00 2001 From: David Desbouis Date: Tue, 19 Jun 2012 11:39:57 +0200 Subject: [PATCH 1/3] adding .gitignore file --- .gitignore | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26275f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.project + +# vi swap files +*.swp + +# Komodo +*.komodoproject +.komodotools + From 27f61c0fe43d45df2d0c78060b3a9a6c2615e5cc Mon Sep 17 00:00:00 2001 From: David Desbouis Date: Tue, 19 Jun 2012 12:25:42 +0200 Subject: [PATCH 2/3] ignore node_modules directory when using npm install inside the project --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 26275f0..f0ce42b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .project +/node_modules # vi swap files *.swp From 3fcd6410c01970f8dc9d4e815639feebcf2e8393 Mon Sep 17 00:00:00 2001 From: David Desbouis Date: Wed, 20 Jun 2012 10:24:51 +0200 Subject: [PATCH 3/3] need to prefix the new token in the header --- lib/c2dm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/c2dm.js b/lib/c2dm.js index 17d2ec3..707f243 100644 --- a/lib/c2dm.js +++ b/lib/c2dm.js @@ -118,7 +118,7 @@ C2DM.prototype.send = function(packet, cb) { // Check if we need to update the headers and try again var newToken = res.headers['update-client-auth']; if (newToken) { - self.emit('token', null, newToken); + self.emit('token', null, 'Auth=' + newToken); self.send(packet, cb); return; // ignore any other events from this request }