mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 09:39:39 +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:
parent
f57ff10ad9
commit
9895123ff3
11 changed files with 138 additions and 374 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue