From efcb0f32f2f45e5fccf958fb65a914db0b35c957 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 9 Jul 2024 19:53:39 +0200 Subject: [PATCH] allow test lang as well --- src/ebusd/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp index 8fd380fa..e5ee6c30 100644 --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -291,7 +291,7 @@ int main(int argc, char* argv[], char* envp[]) { bool isCdn = configHost == CONFIG_HOST; string suffix; if (isCdn) { - suffix = (lang != "en" ? "de" : lang) + "/"; + suffix = (lang != "en" && lang != "tt" ? "de" : lang) + "/"; configUriPrefix += suffix; configPath += suffix; // only for informational purposes } else { @@ -313,7 +313,6 @@ int main(int argc, char* argv[], char* envp[]) { string redirPath; uint16_t redirPort = 443; string redirProto, redirHost, redirUriPrefix; - bool repeat = false; bool json = true; if (configHttpClient->get("/redirect.json", "", &redirPath, nullptr, nullptr, &json) && !json && HttpClient::parseUrl(redirPath, &redirProto, &redirHost, &redirPort, &redirUriPrefix)