From c20222aed0f44845f2cd9c6853c9a8ea766aa1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Setti?= Date: Sun, 17 Mar 2019 19:45:53 -0300 Subject: [PATCH] Added support for electrum rpc --- bitcoinrpc/authproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoinrpc/authproxy.py b/bitcoinrpc/authproxy.py index 8ea9c27..8dab12b 100644 --- a/bitcoinrpc/authproxy.py +++ b/bitcoinrpc/authproxy.py @@ -187,7 +187,7 @@ def _get_response(self): 'code': -342, 'message': 'missing HTTP response from server'}) content_type = http_response.getheader('Content-Type') - if content_type != 'application/json': + if content_type != 'application/json' and content_type != 'application/json-rpc': raise JSONRPCException({ 'code': -342, 'message': 'non-JSON HTTP response with \'%i %s\' from server' % (http_response.status, http_response.reason)})