diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index bfaad1652..3d685c21a 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -216,7 +216,7 @@ get_api_version([], Host) -> catch error:{module_not_loaded, ?MODULE, Host} -> ?WARNING_MSG("Using module ~p for host ~s, but it isn't configured " "in the configuration file", [?MODULE, Host]), - mod_http_api_opt:default_version(global) + ?DEFAULT_API_VERSION end. %% ----------------