1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Additional refactoring work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4539 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2006-07-18 06:47:38 +00:00 committed by matt
parent f57ff10ad9
commit 9895123ff3
11 changed files with 138 additions and 374 deletions

View file

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