Skip to content

Commit 5d27cee

Browse files
author
Krzysztof Przybyszewski
committed
remove sending client version for now
1 parent 69229a8 commit 5d27cee

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Coinpaprika/Client.php

+1-13
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,6 @@ public function getApiVersion(): string
157157
return $this->apiVersion;
158158
}
159159

160-
/**
161-
* Get the latest tag from a git repository.
162-
*
163-
* @return string
164-
*/
165-
public function getClientVersion(): string
166-
{
167-
$version = trim(`git describe --tags --abbrev=0`);
168-
169-
return $version;
170-
}
171-
172160
/**
173161
* @param string $method
174162
* @param string $url
@@ -180,7 +168,7 @@ public function getClientVersion(): string
180168
protected function sendRequest(string $method, string $url, array $headers = []): ResponseInterface
181169
{
182170
$defaultHeaders = [
183-
'User-Agent' => sprintf('Coinpaprika API Client - PHP (%s)', $this->getClientVersion())
171+
'User-Agent' => 'Coinpaprika API Client - PHP'
184172
];
185173

186174
return $this->httpClient->request($method, $url, [

0 commit comments

Comments
 (0)