1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

fix: update CLI user agent name

This commit is contained in:
Christy Jacob 2022-01-19 14:32:14 +04:00
parent ffb3d81b1f
commit ecc91f92f4

View file

@ -47,7 +47,7 @@ class Detector
*/
public function getClient(): array
{
if (strpos($this->userAgent, 'Appwrite CLI') !== false) {
if (strpos($this->userAgent, 'AppwriteCLI') !== false) {
$version = explode(' ', $this->userAgent)[0];
$version = explode('/', $version)[1];
$client = [