From 978364f64cae91efb49f95b66011a74ffcb8b469 Mon Sep 17 00:00:00 2001 From: RomanZacharia Date: Tue, 16 Aug 2016 17:17:23 +0300 Subject: [PATCH] added the content-type header --- pyethapp/rpc_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyethapp/rpc_client.py b/pyethapp/rpc_client.py index 0d395a9..f97fb64 100644 --- a/pyethapp/rpc_client.py +++ b/pyethapp/rpc_client.py @@ -118,7 +118,7 @@ class JSONRPCClient(object): def __init__(self, host='127.0.0.1', port=4000, print_communication=True, privkey=None, sender=None): "specify privkey for local signing" - self.transport = HttpPostClientTransport('http://{}:{}'.format(host, port)) + self.transport = HttpPostClientTransport('http://{}:{}'.format(host, port), headers={'content-type': 'application/json'}) self.print_communication = print_communication self.privkey = privkey self._sender = sender