From bf73a8f185944a94cab416835b4afa286a6895cf Mon Sep 17 00:00:00 2001 From: catchjosh Date: Mon, 19 Oct 2009 17:39:20 +0000 Subject: [PATCH] Added proper content-type heading. git-svn-id: http://jsonrpclib.googlecode.com/svn/trunk@11 ae587032-bbab-11de-869a-473eb4776397 --- lib/jsonrpclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 1.7.9.5