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)})