summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/http
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-09-18 15:39:30 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-09-18 15:39:30 (GMT)
commit8dde1311719b29c63efb379566916cb1aa9a7cd7 (patch)
tree6849ab145936ea5a2bebee5b64e69c4d226c3810 /src/uscxml/plugins/invoker/http
parent7938e286967597c7168b855b7e3fdfbd9b949e0e (diff)
downloaduscxml-8dde1311719b29c63efb379566916cb1aa9a7cd7.zip
uscxml-8dde1311719b29c63efb379566916cb1aa9a7cd7.tar.gz
uscxml-8dde1311719b29c63efb379566916cb1aa9a7cd7.tar.bz2
Work on FFMpegInvoker
Diffstat (limited to 'src/uscxml/plugins/invoker/http')
-rw-r--r--src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
index 2c395a8..1a95396 100644
--- a/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
+++ b/src/uscxml/plugins/invoker/http/HTTPServletInvoker.cpp
@@ -52,15 +52,15 @@ void HTTPServletInvoker::send(const SendRequest& req) {
HTTPServer::Reply httpReply(httpRequest);
httpReply.content = req.content;
- std::map<std::string, std::string>::const_iterator nameListIter = req.namelist.begin();
+ std::map<std::string, Data>::const_iterator nameListIter = req.namelist.begin();
while(nameListIter != req.namelist.end()) {
- httpReply.headers[nameListIter->first] = nameListIter->second;
+ httpReply.headers[nameListIter->first] = nameListIter->second.atom;
nameListIter++;
}
- std::multimap<std::string, std::string>::const_iterator paramIter = req.params.begin();
+ std::multimap<std::string, Data>::const_iterator paramIter = req.params.begin();
while(paramIter != req.params.end()) {
- httpReply.headers[paramIter->first] = paramIter->second;
+ httpReply.headers[paramIter->first] = paramIter->second.atom;
paramIter++;
}
@@ -78,10 +78,10 @@ void HTTPServletInvoker::invoke(const InvokeRequest& req) {
if (req.params.find("path") == req.params.end()) {
LOG(ERROR) << "Path parameter required with httpserver";
}
- _path = (*req.params.find("path")).second;
+ _path = (*req.params.find("path")).second.atom;
if (req.params.find("callback") != req.params.end()) {
- _callback = (*req.params.find("callback")).second;
+ _callback = (*req.params.find("callback")).second.atom;
} else {
_callback = _path;
std::replace(_callback.begin(), _callback.end(), '/', '.');