Skip to content

Commit

Permalink
remove sending client version for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Przybyszewski committed Sep 27, 2018
1 parent 69229a8 commit 5d27cee
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Coinpaprika/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,6 @@ public function getApiVersion(): string
return $this->apiVersion;
}

/**
* Get the latest tag from a git repository.
*
* @return string
*/
public function getClientVersion(): string
{
$version = trim(`git describe --tags --abbrev=0`);

return $version;
}

/**
* @param string $method
* @param string $url
Expand All @@ -180,7 +168,7 @@ public function getClientVersion(): string
protected function sendRequest(string $method, string $url, array $headers = []): ResponseInterface
{
$defaultHeaders = [
'User-Agent' => sprintf('Coinpaprika API Client - PHP (%s)', $this->getClientVersion())
'User-Agent' => 'Coinpaprika API Client - PHP'
];

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

0 comments on commit 5d27cee

Please sign in to comment.