From 35e8051a4293acece760ec1e3ce9935e6dbe9831 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Wed, 15 Sep 2010 05:08:17 +0000 Subject: 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 --- sca-cpp/trunk/modules/wsgi/composite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sca-cpp/trunk/modules/wsgi') diff --git a/sca-cpp/trunk/modules/wsgi/composite.py b/sca-cpp/trunk/modules/wsgi/composite.py index a014156af9..7044483f70 100755 --- a/sca-cpp/trunk/modules/wsgi/composite.py +++ b/sca-cpp/trunk/modules/wsgi/composite.py @@ -190,7 +190,7 @@ def application(e, r): ct = requestContentType(e) # Handle a JSON-RPC function call - if ct.find("application/json-rpc") != -1 or ct.find("text/plain") != -1: + if ct.find("application/json-rpc") != -1 or ct.find("text/plain") != -1 or ct.find("application/x-www-form-urlencoded") != -1: json = elementsToValues(readJSON(requestBody(e))) args = postArgs(json) jid = cadr(assoc("'id", args)) -- cgit v1.2.3