diff --git a/app/Classes/VATSIMApi2Helper.php b/app/Classes/VATSIMApi2Helper.php index a325804a..ea042e89 100644 --- a/app/Classes/VATSIMApi2Helper.php +++ b/app/Classes/VATSIMApi2Helper.php @@ -19,7 +19,11 @@ private static function _key() { private static function _client(): Client { $key = VATSIMApi2Helper::_key(); - return new Client(['base_uri' => self::_url(),'headers' => ['Authorization' => "Token {$key}"]]); + return new Client([ + 'base_uri' => self::_url(), + 'headers' => ['Authorization' => "Token {$key}"], + 'User-Agent' => 'VATUSA/current +https://vatusa.net', + ]); } static function updateRating(int $cid, int $rating): bool { $path = "/members/{$cid}";