Skip to content

Commit

Permalink
all uknown url message are now using get_path/1, more refactoring to …
Browse files Browse the repository at this point in the history
…come
  • Loading branch information
baphled committed Apr 11, 2009
1 parent 3bd2651 commit b265244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/chatterl/src/cwiga.erl
Expand Up @@ -206,7 +206,7 @@ handle_request('GET', Url, ContentType, Req) ->
manage_request(ContentType,Req,{group_poll,Group},false);
["status","logged_in"] ->
manage_request(ContentType,Req,{logged_in,[]},true);
_ -> error("Unknown command: " ++Url, ContentType)
_ -> error("Unknown command: " ++ get_path(Req), ContentType)
end;
handle_request('DELETE',Url,ContentType,Req) ->
Path = string:tokens(Url, "/"),
Expand All @@ -215,7 +215,7 @@ handle_request('DELETE',Url,ContentType,Req) ->
chatterl_mid_man:disconnect(ContentType,Client);
["groups",Group,"drop"] ->
manage_request(ContentType,Req,{group_drop,Group},true);
_ -> error("Unknown command: " ++Url, ContentType)
_ -> error("Unknown command: " ++ get_path(Req), ContentType)
end.

%%--------------------------------------------------------------------
Expand Down Expand Up @@ -248,7 +248,7 @@ handle_request('POST',Url,ContentType,Post,Req) ->
manage_request(ContentType,Req,{group_leave,{Group,proplists:get_value("client",Post)}},true);
["groups",Group,"create"] ->
manage_request(ContentType,Req,{group_create,{Group,proplists:get_value("description",Post)}},true);
_ -> error("Unknown command: " ++Url, ContentType)
_ -> error("Unknown command: " ++ get_path(Req), ContentType)
end.

%%--------------------------------------------------------------------
Expand Down

0 comments on commit b265244

Please sign in to comment.