Permalink
Browse files

fix error with unicode characters over 1 byte

  • Loading branch information...
Shane Wolf
Shane Wolf committed Aug 5, 2011
1 parent 4b0a5c0 commit 52bae34357c0040f0ef272d361c93d853c43a027
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/transport/node_http.js
@@ -4,7 +4,7 @@ Faye.Transport.NodeHttp = Faye.extend(Faye.Class(Faye.Transport, {
secure = (uri.protocol === 'https:'),
port = (secure ? 443 : 80),
client = http.createClient(uri.port || port, uri.hostname, secure),
- content = JSON.stringify(message),
+ content = new Buffer(JSON.stringify(message)),
response = null,
retry = this.retry(message, timeout),
self = this;

0 comments on commit 52bae34

Please sign in to comment.