verse.client: Add missing version to stream header (thanks Bill Clark)

Wed, 17 Feb 2010 00:26:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 17 Feb 2010 00:26:30 +0000
changeset 49
9c10ff584e87
parent 48
abccad4b8559
child 50
432ac110544f

verse.client: Add missing version to stream header (thanks Bill Clark)

client.lua file | annotate | diff | comparison | revisions
--- a/client.lua	Wed Feb 17 00:24:54 2010 +0000
+++ b/client.lua	Wed Feb 17 00:26:30 2010 +0000
@@ -102,7 +102,8 @@
 
 function stream:reopen()
 	reset_stream(self);
-	self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', xmlns = "jabber:client" }):top_tag());
+	self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams',
+		xmlns = "jabber:client", version = "1.0" }):top_tag());
 end
 
 function stream:close(reason)

mercurial