From ab593022040f0aed22c6128eacb57b3ff832580f Mon Sep 17 00:00:00 2001 From: Pawel Chmielowski Date: Fri, 13 Mar 2026 14:47:36 +0100 Subject: [PATCH] Revert "Use global value for default_version as failback in mod_http_api if host is not recognized" This fail tests. This reverts commit 89b11829cef4755344764000b45d2dff22004203. --- src/mod_http_api.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. %% ----------------