allow test lang as well

This commit is contained in:
John
2024-07-09 19:53:39 +02:00
parent 0b49f9d6da
commit efcb0f32f2
+1 -2
View File
@@ -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)