[web-downloads] main: Add User-Agent in FetchArtifact

From: Date: Thu, 30 Jan 2025 02:55:00 +0000
Subject: [web-downloads] main: Add User-Agent in FetchArtifact
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-32640@lists.php.net to get a copy of this message
Author: Shivam Mathur (shivammathur) Date: 2025-01-30T08:17:51+05:30 Commit: https://github.com/php/web-downloads/commit/b54222c8cc92fff6903e8e47fe25a2ecc5cb9cae Raw diff: https://github.com/php/web-downloads/commit/b54222c8cc92fff6903e8e47fe25a2ecc5cb9cae.diff Add User-Agent in FetchArtifact Changed paths: M src/Actions/FetchArtifact.php Diff: diff --git a/src/Actions/FetchArtifact.php b/src/Actions/FetchArtifact.php index 5f096a3..784699e 100644 --- a/src/Actions/FetchArtifact.php +++ b/src/Actions/FetchArtifact.php @@ -14,6 +14,7 @@ public function handle($url, $filepath, $token = null): void if (str_contains($url, 'api.github.com')) { $headers = [ 'Accept: application/vnd.github+json', + 'User-Agent: PHP Web Downloads', ]; if ($token) {

« previous php.webmaster (#32640) next »