From fe3afd84b986bfe59cb82311294a4aa4b7791399 Mon Sep 17 00:00:00 2001 From: Julien Loizelet Date: Fri, 30 Aug 2024 16:35:21 +0900 Subject: [PATCH] style(request): Explicitly use rest headers when type is rest --- src/Client/HttpMessage/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/HttpMessage/Request.php b/src/Client/HttpMessage/Request.php index 849e343..b71f949 100644 --- a/src/Client/HttpMessage/Request.php +++ b/src/Client/HttpMessage/Request.php @@ -47,7 +47,7 @@ public function __construct( ) { $this->uri = $uri; $this->method = $method; - $this->headers = Constants::TYPE_APPSEC === $type ? $headers : array_merge($this->headers, $headers); + $this->headers = Constants::TYPE_REST === $type ? array_merge($this->headers, $headers) : $headers; $this->parameters = $parameters; }