summaryrefslogtreecommitdiff
path: root/server/webserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/webserver.cpp')
-rw-r--r--server/webserver.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/webserver.cpp b/server/webserver.cpp
index ce8acda..b67076b 100644
--- a/server/webserver.cpp
+++ b/server/webserver.cpp
@@ -17,7 +17,7 @@ cWebserver::cWebserver(std::string address)
, mWebserverThread(*this)
{
SetWebserverRootDir(string(), string(), string());
- SetServiceUrl("services/", string());
+ SetServiceUrl(string(), string());
}
cWebserver::~cWebserver(){
@@ -109,14 +109,15 @@ void cWebserver::SetWebserverRootDir(std::string rootDirectory, std::string stat
void cWebserver::SetServiceUrl(std::string descriptionUrl, std::string controlUrl){
if(mWebserverThread.Active()) return;
- if(descriptionUrl.empty())
+ if(descriptionUrl.empty()){
mServiceUrl = "services/";
+ }
else
mServiceUrl = descriptionUrl;
if(controlUrl.empty()){
stringstream s;
- s << "http://" << UpnpGetServerIpAddress() << ":" << UpnpGetServerPort() << "/" << mServiceUrl;
+ s << "http://" << UpnpGetServerIpAddress() << ":" << UpnpGetServerPort() << "/" << "services/";
mControlUrl = s.str();
} else {