feat: update user agent name to Appwrite CLI
This commit is contained in:
parent
d2809d9980
commit
8fbb6d1057
|
@ -47,7 +47,7 @@ class Detector
|
|||
*/
|
||||
public function getClient(): array
|
||||
{
|
||||
if (strpos($this->userAgent, 'Terminal') !== false) {
|
||||
if (strpos($this->userAgent, 'Appwrite CLI') !== false) {
|
||||
$version = explode(' ', $this->userAgent)[0];
|
||||
$version = explode('/', $version)[1];
|
||||
$client = [
|
||||
|
|
Loading…
Reference in a new issue