use http in base url in test builds

This commit is contained in:
einhornimmond 2021-01-07 10:13:00 +01:00 committed by Ulf Gebhardt
parent 973fae36e2
commit d8541fd0d0
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 9 additions and 1 deletions

View File

@ -75,4 +75,12 @@ unsigned long long PageRequestMessagedHandler::getLastGetAsU64(const std::string
return 0;
}
return result;
}
std::string PageRequestMessagedHandler::getBaseUrl()
{
if (ServerConfig::g_ServerSetupType == ServerConfig::SERVER_TYPE_TEST) {
return "http://" + mHost + mLoginServerPath;
}
return "https://" + mHost + mLoginServerPath;
}

View File

@ -28,7 +28,7 @@ protected:
virtual Languages chooseLanguage(Poco::Net::HTTPServerRequest& request, std::string lang_btn = "");
unsigned long long getLastGetAsU64(const std::string& uri);
inline std::string getBaseUrl() { return "https://" + mHost + mLoginServerPath; }
std::string getBaseUrl();
Profiler mTimeProfiler;
std::string mHost;