diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-15 05:08:17 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-15 05:08:17 +0000 |
commit | 35e8051a4293acece760ec1e3ce9935e6dbe9831 (patch) | |
tree | 822250b1cd5e30ac5e19cc5e6cf14b2816b6f5e3 /sca-cpp/trunk/modules/server/mod-eval.hpp | |
parent | fe52f0dc5830614a303ab0531488a02c026edbc1 (diff) |
Accept JSON-RPC requests with application/x-www-form-urlencoded content type.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@997187 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/server/mod-eval.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/server/mod-eval.hpp b/sca-cpp/trunk/modules/server/mod-eval.hpp index 40164530b7..e048c99a56 100644 --- a/sca-cpp/trunk/modules/server/mod-eval.hpp +++ b/sca-cpp/trunk/modules/server/mod-eval.hpp @@ -149,7 +149,7 @@ const failable<int> post(request_rec* r, const lambda<value(const list<value>&)> // Evaluate a JSON-RPC request and return a JSON result const string ct = httpd::contentType(r); - if (contains(ct, "application/json-rpc") || contains(ct, "text/plain")) { + if (contains(ct, "application/json-rpc") || contains(ct, "text/plain") || contains(ct, "application/x-www-form-urlencoded")) { // Read the JSON request const int rc = httpd::setupReadPolicy(r); |