summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--src/web/ejabberd_http_poll.erl4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 56c36a72..88f20559 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-14 Alexey Shchepin <alexey@sevcom.net>
+
+ * src/web/ejabberd_http_poll.erl: Fixed sending of Set-Cookie
+ header
+
2004-08-12 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_c2s.erl: Bugfix in resend_offline_messages/1
diff --git a/src/web/ejabberd_http_poll.erl b/src/web/ejabberd_http_poll.erl
index 4366d89d..58d918a7 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 ->