[Pkg-javascript-commits] [ltx] 92/469: server makeIncomingServer(): rm version='1.0' for now

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:07 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 313d4787a5336dc2b2382891c72da3d8bea8da1f
Author: Astro <astro at spaceboyz.net>
Date:   Mon Sep 6 03:29:45 2010 +0200

    server makeIncomingServer(): rm version='1.0' for now
---
 lib/xmpp/server.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/xmpp/server.js b/lib/xmpp/server.js
index cc8402c..34cb2b8 100644
--- a/lib/xmpp/server.js
+++ b/lib/xmpp/server.js
@@ -82,6 +82,7 @@ exports.makeIncomingServer = function(self) {
     Connection.makeConnection(self);
 
     initServer(self);
+    delete self.xmppVersion;  // for now, until we support TLS and SASL?
     self.startStream();
     self.streamId = generateId();
 
@@ -92,7 +93,9 @@ exports.makeIncomingServer = function(self) {
 	    "' id='" + self.streamId + "'";
 	if (self.xmppVersion)
 	    tag += " version='" + self.xmppVersion + "'";
-	tag += "><stream:features/>";
+	tag += ">";
+	if (self.xmppVersion == '1.0')
+	    tag += "<stream:features/>";
 	self.send(tag);
     });
 

-- 
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