Permalink
Browse files

Properly handle UTF8 data

  • Loading branch information...
1 parent a9e395b commit da0f747bc7a9aef772967e55d43ed12b31e67a7b @emostar committed Apr 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/pusher.js
  2. +1 −1 package.json
View
@@ -20,7 +20,7 @@ module.exports = (function(){
Pusher.prototype.trigger = function(event, data, callback) {
this.event = event;
- this.data = JSON.stringify(data);
+ this.data = new Buffer(JSON.stringify(data));
this.send(callback);
return this;
View
@@ -1,7 +1,7 @@
{
"name": "pusher",
"description": "A simple node.js publisher lib for pusher.com",
- "version": "0.0.2",
+ "version": "0.0.3",
"author": "Christian Bäuerlein <fabrik42@gmail.com>",
"dependencies": {
},

0 comments on commit da0f747

Please sign in to comment.