From d959852a5662f4b12450ff2983ba0e089fbde061 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Fri, 15 Mar 2019 14:02:20 +0800 Subject: [PATCH] add X-Request-Id --- src/Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.php b/src/Client.php index b8f0cec..7b139df 100644 --- a/src/Client.php +++ b/src/Client.php @@ -95,6 +95,7 @@ class Client extends JsonRpc 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([