This commit is contained in:
Simon Stürz 2017-10-02 11:54:59 +02:00 committed by Michael Zanetti
parent d2bfd0e11f
commit 98a31b9979
2 changed files with 2 additions and 12 deletions

View File

@ -117,6 +117,8 @@ private:
void setServerUuid(const QUuid &uuid);
void setWebServerPublicFolder(const QString & path);
QString defaultWebserverPublicFolderPath() const;
void storeServerConfig(const QString &group, const ServerConfiguration &config);
ServerConfiguration readServerConfig(const QString &group, const QString &id);
void deleteServerConfig(const QString &group, const QString &id);

View File

@ -139,18 +139,6 @@ void WebServer::sendHttpReply(HttpReply *reply)
socket->write(reply->data());
}
QString WebServer::defaultPublicFolderPath() const
{
QString publicFolderPath;
if (!qgetenv("SNAP").isEmpty()) {
publicFolderPath = QString(qgetenv("SNAP")) + "/guh-webinterface";
} else {
publicFolderPath =
}
}
bool WebServer::verifyFile(QSslSocket *socket, const QString &fileName)
{
QFileInfo file(fileName);