Added proper content-type heading.
[invirt/packages/python-jsonrpclib.git] / 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: