From 202bece16d422460eb18a05b94ac065f56b00cdb Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 16 Jun 2009 18:25:02 +0000 Subject: [PATCH] Save bosh version with session (thanks to Stefan Strigler) SVN Revision: 2281 --- src/web/ejabberd_http_bind.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index d7a16c14e..7eb10b3f6 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -3,12 +3,12 @@ %%% Author : Stefan Strigler %%% Purpose : HTTP Binding support (JEP-0124) %%% Created : 21 Sep 2005 by Stefan Strigler -%%% Id : $Id: ejabberd_http_bind.erl 273 2007-08-15 13:53:00Z sstrigler $ +%%% Id : $Id: ejabberd_http_bind.erl 274 2007-08-15 13:54:05Z sstrigler $ %%%---------------------------------------------------------------------- -module(ejabberd_http_bind). -author('steve@zeank.in-berlin.de'). --vsn('$Rev: 273 $'). +-vsn('$Rev: 274 $'). -behaviour(gen_fsm). @@ -34,7 +34,7 @@ -include("jlib.hrl"). -include("ejabberd_http.hrl"). --record(http_bind, {id, pid, to, hold, wait}). +-record(http_bind, {id, pid, to, hold, wait, version}). %% http binding request -record(hbr, {rid, @@ -162,9 +162,9 @@ process_request(Data) -> pid = Pid, to = {XmppDomain, XmppVersion}, - version = Version, wait = Wait, - hold = Hold}) + hold = Hold, + version = Version}) end), handle_http_put(Sid, Rid, Key, NewKey, Wait, Hold, Attrs, Packet, true)