From: catchjosh Date: Mon, 19 Oct 2009 17:39:20 +0000 (+0000) Subject: Added proper content-type heading. X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-jsonrpclib.git/commitdiff_plain/bf73a8f185944a94cab416835b4afa286a6895cf Added proper content-type heading. git-svn-id: http://jsonrpclib.googlecode.com/svn/trunk@11 ae587032-bbab-11de-869a-473eb4776397 --- diff --git a/lib/jsonrpclib.py b/lib/jsonrpclib.py index ff5a58d..1ca104d 100644 --- a/lib/jsonrpclib.py +++ b/lib/jsonrpclib.py @@ -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: