[Pkg-javascript-commits] [ltx] 16/469: connection: pass Buffer to expat parser, requires newest node-expat

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:00:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit ebab62691cda9369823a8c9a786477dba39115e4
Author: Astro <astro at spaceboyz.net>
Date:   Sun May 30 16:06:17 2010 +0200

    connection: pass Buffer to expat parser, requires newest node-expat
---
 lib/xmpp/connection.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/xmpp/connection.js b/lib/xmpp/connection.js
index 8b477fb..e671ede 100644
--- a/lib/xmpp/connection.js
+++ b/lib/xmpp/connection.js
@@ -100,7 +100,7 @@ Connection.prototype.startStream = function() {
 
 Connection.prototype.onData = function(data) {
     if (this.parser) {
-	if (!this.parser.parse(data.toString(), false)) {
+	if (!this.parser.parse(data, false)) {
 	    this.emit('parseError');
 	    this.end();
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list