Browse files

Erlang R14 seems to have changed the type of the request

  • Loading branch information...
1 parent 9ce09a1 commit a0a29c4d38292462fa14c431629c3485ebc9ff50 @jhs jhs committed Dec 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/src/webdirs.erl
View
2 example/src/webdirs.erl
@@ -94,7 +94,7 @@ route_request(Request) ->
_Pid = spawn(fun() -> reload() end),
{reply, {200, "Reloading"}, [{'Content-Type', <<"text/html">>}], <<"Policy reloaded. <a href='/'>Try now.</a>\r\n">>};
_ ->
- Dirs = string:tokens(binary_to_list(Path), "/"),
+ Dirs = string:tokens(Path, "/"),
case Dirs of
[] ->
% User queried /

0 comments on commit a0a29c4

Please sign in to comment.