summaryrefslogtreecommitdiffstats
path: root/src/uscxml/server
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-01-17 20:35:34 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-01-17 20:35:34 (GMT)
commit3d790497c67b07149f8563dbae39856aa961e74d (patch)
tree8d3922848f68f2e0b2449019b6fe6ca74051ec95 /src/uscxml/server
parent134f488db5d2c230fb13349cab18b350ed2c98a3 (diff)
downloaduscxml-3d790497c67b07149f8563dbae39856aa961e74d.zip
uscxml-3d790497c67b07149f8563dbae39856aa961e74d.tar.gz
uscxml-3d790497c67b07149f8563dbae39856aa961e74d.tar.bz2
Polished umundo invoker, prolog datamodel and several bugfixes
Diffstat (limited to 'src/uscxml/server')
-rw-r--r--src/uscxml/server/InterpreterServlet.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/server/InterpreterServlet.cpp b/src/uscxml/server/InterpreterServlet.cpp
index 01c8f07..a62a6eb 100644
--- a/src/uscxml/server/InterpreterServlet.cpp
+++ b/src/uscxml/server/InterpreterServlet.cpp
@@ -76,8 +76,8 @@ bool InterpreterHTTPServlet::httpRecvRequest(const HTTPServer::Request& req) {
Data InterpreterHTTPServlet::getDataModelVariables() {
Data data;
- assert(_url.length() > 0);
- data.compound["location"] = Data(_url, Data::VERBATIM);
+ if(_url.length() > 0)
+ data.compound["location"] = Data(_url, Data::VERBATIM);
return data;
}
@@ -138,8 +138,8 @@ bool InterpreterWebSocketServlet::wsRecvRequest(struct evws_connection *conn, co
Data InterpreterWebSocketServlet::getDataModelVariables() {
Data data;
- assert(_url.length() > 0);
- data.compound["location"] = Data(_url, Data::VERBATIM);
+ if(_url.length() > 0);
+ data.compound["location"] = Data(_url, Data::VERBATIM);
return data;
}