Skip to content

Commit

Permalink
allow test lang as well
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Jul 9, 2024
1 parent 0b49f9d commit efcb0f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ebusd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit efcb0f3

Please sign in to comment.