This commit is contained in:
2018-05-31 21:03:33 +02:00
parent 787af11a57
commit be9f0249e9
2 changed files with 11 additions and 9 deletions

View File

@ -139,14 +139,6 @@ std::string formatSize(unsigned long bytes) {
return std::string(buffer);
}
string getWebRoot(string host) {
string root = webroot + host;
if (fileExists(root)) {
return root;
} else {
return webroot + "www.necronda.net";
}
}
@ -227,6 +219,16 @@ string read_line(FILE* file) {
#include "network/http/HttpResponse.cpp"
#include "network/http/HttpConnection.cpp"
string getWebRoot(string host) {
string root = webroot + host;
if (fileExists(root)) {
return root;
} else {
return webroot + "www.necronda.net";
}
}
#include "client.cpp"