diff --git a/src/Client.php b/src/Client.php index 7b139df..304b9a1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -92,13 +92,14 @@ class Client extends JsonRpc */ protected function post($payload, $options = []) { + $uri = 'rpc/json-rpc-v2.json?app='.$this->config['app']; try { $headers = [ 'X-Client-App' => $this->config['app'], 'X-Request-Id' => app('request')->header('X-Request-Id') ]; app('rpc.logger')->info("client_request", array_merge($this->server_config, $payload)); - $resp = $this->http->request('POST', 'rpc/json-rpc-v2.json', array_merge([ + $resp = $this->http->request('POST', $uri, array_merge([ 'headers' => $headers, 'json' => $payload, ], $options));