Skip to content
Browse files

Fix riak_core_wm_urlmap.

When the webmachine dispatch list was moved to ETS, this resource was
not changed to reflect that, and so it still hit the application env
for the dispatch list, resulting in a badmatch error because the key
was not set.
  • Loading branch information...
1 parent 427a2cf commit 23bd32cc89dfcd0ccc169cebf32b3be4721b1d2c @seancribbs seancribbs committed Jan 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/riak_core_wm_urlmap.erl
2 src/riak_core_wm_urlmap.erl
@@ -75,7 +75,7 @@ to_json(RD, Services) ->
{mochijson:encode({struct, Services}), RD, Services}.
service_list() ->
- {ok, Dispatch} = application:get_env(webmachine, dispatch_list),
+ Dispatch = webmachine_router:get_routes(),
[{atom_to_list(Resource), "/"++UriBase}
|| {[UriBase|_], Resource, _} <- Dispatch]).

0 comments on commit 23bd32c

Please sign in to comment.
Something went wrong with that request. Please try again.