aboutsummaryrefslogtreecommitdiff
path: root/src/web/ejabberd_http_poll.erl
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2007-01-25 05:53:58 +0000
committerAlexey Shchepin <alexey@process-one.net>2007-01-25 05:53:58 +0000
commit00807235c4b42f760b4d26f9720396638c8bb60b (patch)
treef1dfd96e206b7cc156b9a19321cbfae8b5aef0f4 /src/web/ejabberd_http_poll.erl
parent* Generated updated documentation. (diff)
* src/web/*: Plugin architecture for HTTP modules (thanks to
Massimiliano Mirra) SVN Revision: 713
Diffstat (limited to 'src/web/ejabberd_http_poll.erl')
-rw-r--r--src/web/ejabberd_http_poll.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/web/ejabberd_http_poll.erl b/src/web/ejabberd_http_poll.erl
index d12277449..01268b817 100644
--- a/src/web/ejabberd_http_poll.erl
+++ b/src/web/ejabberd_http_poll.erl
@@ -24,7 +24,7 @@
setopts/2,
controlling_process/2,
close/1,
- process_request/1]).
+ process/2]).
-include("ejabberd.hrl").
-include("jlib.hrl").
@@ -83,8 +83,7 @@ close({http_poll, FsmRef}) ->
catch gen_fsm:sync_send_all_state_event(FsmRef, close).
-process_request(#request{path = [],
- data = Data} = Request) ->
+process([], #request{data = Data} = Request) ->
case catch parse_request(Data) of
{ok, ID1, Key, NewKey, Packet} ->
ID = if
@@ -130,7 +129,7 @@ process_request(#request{path = [],
_ ->
{200, [?CT, {"Set-Cookie", "ID=-2:0; expires=-1"}], ""}
end;
-process_request(_Request) ->
+process(_, _Request) ->
{400, [], {xmlelement, "h1", [],
[{xmlcdata, "400 Bad Request"}]}}.