Software /
code /
verse
Comparison
client.lua @ 49:9c10ff584e87
verse.client: Add missing version to stream header (thanks Bill Clark)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 17 Feb 2010 00:26:30 +0000 |
parent | 48:abccad4b8559 |
child | 50:432ac110544f |
comparison
equal
deleted
inserted
replaced
48:abccad4b8559 | 49:9c10ff584e87 |
---|---|
100 self:reopen(); | 100 self:reopen(); |
101 end | 101 end |
102 | 102 |
103 function stream:reopen() | 103 function stream:reopen() |
104 reset_stream(self); | 104 reset_stream(self); |
105 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', xmlns = "jabber:client" }):top_tag()); | 105 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
106 xmlns = "jabber:client", version = "1.0" }):top_tag()); | |
106 end | 107 end |
107 | 108 |
108 function stream:close(reason) | 109 function stream:close(reason) |
109 if not self.notopen then | 110 if not self.notopen then |
110 self:send("</stream:stream>"); | 111 self:send("</stream:stream>"); |