summaryrefslogtreecommitdiffstats
path: root/src/uscxml/server/HTTPServer.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-30 13:58:47 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-10-30 13:58:47 (GMT)
commit3e3c9ff5c1d0f2432283d3380a3410406f84be26 (patch)
tree7fdc15937dd155b870c776833ee293fde874e310 /src/uscxml/server/HTTPServer.cpp
parent0fb58c8183be355a386a2f61a2f69e20143c0be4 (diff)
downloaduscxml-3e3c9ff5c1d0f2432283d3380a3410406f84be26.zip
uscxml-3e3c9ff5c1d0f2432283d3380a3410406f84be26.tar.gz
uscxml-3e3c9ff5c1d0f2432283d3380a3410406f84be26.tar.bz2
Content-type header with firefox and case-typo with reflectorip in miles
Diffstat (limited to 'src/uscxml/server/HTTPServer.cpp')
-rw-r--r--src/uscxml/server/HTTPServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp
index 09dc0b6..efd49a5 100644
--- a/src/uscxml/server/HTTPServer.cpp
+++ b/src/uscxml/server/HTTPServer.cpp
@@ -387,11 +387,11 @@ void HTTPServer::httpRecvReqCallback(struct evhttp_request *req, void *callbackD
key.clear();
}
request.data.compound["content"].atom.clear();
- } else if (iequals(contentType, "application/json")) {
+ } else if (iequals(contentType.substr(0, 16), "application/json")) {
request.data.compound["content"] = Data::fromJSON(request.data.compound["content"].atom);
}
}
-
+
request.raw = raw.str();
// try with the handler registered for path first