Some JSON-RPC APIs (Atlassian Confluence in my case) do require Content-Type other than application/json-rpc to work. That little patch adds the ability to make them happy.
ServerProxy can be instantiated as usual but with additional keyword-only parameter content_type containing the string to be passed under Content-Type HTTP header value:
server = jsonrpclib.jsonrpc.ServerProxy(endpoint, content_type="application/json")
Some JSON-RPC APIs (Atlassian Confluence in my case) do require
Content-Type
other thanapplication/json-rpc
to work. That little patch adds the ability to make them happy.ServerProxy
can be instantiated as usual but with additional keyword-only parametercontent_type
containing the string to be passed underContent-Type
HTTP header value: