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) {