Commits

Anonymous committed 671f2a3

useless debug info

more example in dispatch

{["example", '*'], [], example_resource, []}.
{[cname, "example", '*'], [path], example_resource, []}.
{[cname, "example", '*'], [], example_resource, []}.
{["test", "example", '*'], [], example_testresource, []}.

Comments (0)

Files changed (1)

src/webmachine_dispatcher.erl

 %% See also http://bitbucket.org/justin/webmachine/wiki/DispatchConfiguration
 dispatch(HostNameAsString, PathAsString, DispatchList) ->
     HostNameParts = split_hostname(HostNameAsString),
-    io:format("hostname parts ~p ~n", [HostNameParts]),
     Path = string:tokens(PathAsString, [?SEPARATOR]),
     % URIs that end with a trailing slash are implicitly one token
     % "deeper" than we otherwise might think as we are "inside"