aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2004-08-15 21:18:53 +0000
committerAlexey Shchepin <alexey@process-one.net>2004-08-15 21:18:53 +0000
commit69225f9e1456915e7b94374a366d68af593acb43 (patch)
treee1a7a96fcf532f8ede233ab9b14e5676db16b131 /src
parent* src/ejabberd_c2s.erl: Bugfix in resend_offline_messages/1 (diff)
* src/web/ejabberd_http_poll.erl: Fixed sending of Set-Cookie
header SVN Revision: 257
Diffstat (limited to 'src')
-rw-r--r--src/web/ejabberd_http_poll.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/ejabberd_http_poll.erl b/src/web/ejabberd_http_poll.erl
index 4366d89d7..58d918a73 100644
--- a/src/web/ejabberd_http_poll.erl
+++ b/src/web/ejabberd_http_poll.erl
@@ -105,7 +105,9 @@ process_request(#request{path = [],
{ok, OutPacket} ->
if
ID == ID1 ->
- {200, [?CT], OutPacket};
+ Cookie = "ID=" ++ ID ++ "; expires=-1",
+ {200, [?CT, {"Set-Cookie", Cookie}],
+ OutPacket};
ID1 == "mobile" ->
{200, [?CT], [ID, $\n, OutPacket]};
true ->