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++, ],