projects
/
invirt/packages/python-jsonrpclib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added proper content-type heading.
[invirt/packages/python-jsonrpclib.git]
/
lib
/
jsonrpclib.py
diff --git
a/lib/jsonrpclib.py
b/lib/jsonrpclib.py
index
ff5a58d
..
1ca104d
100644
(file)
--- 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):
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:
connection.putheader("Content-Length", str(len(request_body)))
connection.endheaders()
if request_body: