From dc183aa941e2ee67b74cb5d7e0c985767a1c3c12 Mon Sep 17 00:00:00 2001 From: M Shahbaz Date: Thu, 15 Nov 2018 19:04:58 +0400 Subject: [PATCH] client-specific setting to preserve case methods Following: https://github.com/denpamusic/php-bitcoinrpc/pull/26 Add 'preserve_case' => true in client-specific settings e.g: 'ethereum' => [ 'scheme' => 'http', 'host' => 'localhost', 'port' => 8545, 'ca' => null, 'preserve_case' => true, ], --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 4c8c115..9e3bb27 100644 --- a/src/Client.php +++ b/src/Client.php @@ -389,7 +389,7 @@ protected function makeJson($method, $params = []) { return [ 'json' => [ - 'method' => strtolower($method), + 'method' => isset($this->config['preserve_case']) ? $method : strtolower($method), 'params' => (array) $params, 'id' => $this->rpcId++, ],