Added proper content-type heading.
authorcatchjosh <catchjosh@ae587032-bbab-11de-869a-473eb4776397>
Mon, 19 Oct 2009 17:39:20 +0000 (17:39 +0000)
committercatchjosh <catchjosh@ae587032-bbab-11de-869a-473eb4776397>
Mon, 19 Oct 2009 17:39:20 +0000 (17:39 +0000)
git-svn-id: http://jsonrpclib.googlecode.com/svn/trunk@11 ae587032-bbab-11de-869a-473eb4776397

lib/jsonrpclib.py

index ff5a58d..1ca104d 100644 (file)
@@ -109,7 +109,7 @@ class Transport(XMLTransport):
     user_agent = _user_agent
 
     def send_content(self, connection, request_body):
-        connection.putheader("Content-Type", "text/json")
+        connection.putheader("Content-Type", "application/json-rpc")
         connection.putheader("Content-Length", str(len(request_body)))
         connection.endheaders()
         if request_body: