allow test lang as well
This commit is contained in:
+1
-2
@@ -291,7 +291,7 @@ int main(int argc, char* argv[], char* envp[]) {
|
|||||||
bool isCdn = configHost == CONFIG_HOST;
|
bool isCdn = configHost == CONFIG_HOST;
|
||||||
string suffix;
|
string suffix;
|
||||||
if (isCdn) {
|
if (isCdn) {
|
||||||
suffix = (lang != "en" ? "de" : lang) + "/";
|
suffix = (lang != "en" && lang != "tt" ? "de" : lang) + "/";
|
||||||
configUriPrefix += suffix;
|
configUriPrefix += suffix;
|
||||||
configPath += suffix; // only for informational purposes
|
configPath += suffix; // only for informational purposes
|
||||||
} else {
|
} else {
|
||||||
@@ -313,7 +313,6 @@ int main(int argc, char* argv[], char* envp[]) {
|
|||||||
string redirPath;
|
string redirPath;
|
||||||
uint16_t redirPort = 443;
|
uint16_t redirPort = 443;
|
||||||
string redirProto, redirHost, redirUriPrefix;
|
string redirProto, redirHost, redirUriPrefix;
|
||||||
bool repeat = false;
|
|
||||||
bool json = true;
|
bool json = true;
|
||||||
if (configHttpClient->get("/redirect.json", "", &redirPath, nullptr, nullptr, &json) && !json
|
if (configHttpClient->get("/redirect.json", "", &redirPath, nullptr, nullptr, &json) && !json
|
||||||
&& HttpClient::parseUrl(redirPath, &redirProto, &redirHost, &redirPort, &redirUriPrefix)
|
&& HttpClient::parseUrl(redirPath, &redirProto, &redirHost, &redirPort, &redirUriPrefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user