Changeset

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
parents 48:abccad4b8559
children 50:432ac110544f
files client.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)