Skip to content

Commit

Permalink
style(request): Explicitly use rest headers when type is rest
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Aug 30, 2024
1 parent 8779a5c commit fe3afd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/HttpMessage/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fe3afd8

Please sign in to comment.