1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-23 06:42:05 +01:00

Don't include version=1.0 when using old SSL connections. SMACK-90

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2818 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-09-13 20:09:28 +00:00 committed by gato
parent 283b0f33f5
commit d61e2e5c59

View file

@ -283,7 +283,13 @@ class PacketWriter {
stream.append(" to=\"").append(connection.serviceName).append("\""); stream.append(" to=\"").append(connection.serviceName).append("\"");
stream.append(" xmlns=\"jabber:client\""); stream.append(" xmlns=\"jabber:client\"");
stream.append(" xmlns:stream=\"http://etherx.jabber.org/streams\""); stream.append(" xmlns:stream=\"http://etherx.jabber.org/streams\"");
stream.append(" version=\"1.0\">"); if (connection instanceof SSLXMPPConnection) {
// Old SSL connections should not include indicate XMPP 1.0 compliance
stream.append(">");
}
else {
stream.append(" version=\"1.0\">");
}
writer.write(stream.toString()); writer.write(stream.toString());
writer.flush(); writer.flush();
} }