Skip to content

Commit c6e13fc

Browse files
Muhammad FaragMuhammadFarag
authored andcommitted
Fix library userAgent, and HttpRequestMatcher.
1 parent 87a3852 commit c6e13fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Clients/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function request(
172172
$maxTries = $tries ?? 1;
173173

174174
$version = require dirname(__FILE__) . '/../version.php';
175-
$userAgentParts = ["Shopify API Library for PHP v$version"];
175+
$userAgentParts = ["Shopify Admin API Library for PHP v$version"];
176176

177177
if (Context::$USER_AGENT_PREFIX) {
178178
array_unshift($userAgentParts, Context::$USER_AGENT_PREFIX);

tests/HttpRequestMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function matches($other): bool
4747

4848
private function matchUserAgent(RequestInterface $request): bool
4949
{
50-
return preg_match($this->userAgent, $request->getHeaderLine('user-agent')) !== false;
50+
return preg_match($this->userAgent, $request->getHeaderLine('user-agent')) != false;
5151
}
5252

5353
private function matchBody(): bool

0 commit comments

Comments
 (0)