Skip to content

Commit

Permalink
🩹 fix: Added user agent when downloading plugin, updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tombroucke committed Nov 5, 2024
1 parent 8eac5ad commit ad6e9d3
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Recipes/Concerns/GetsVersionFromPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait GetsVersionFromPlugin
*/
private function getVersionFromPlugin($packageDownloadLink): ?string
{
$fileContent = $this->httpClient::get($packageDownloadLink)->body();
$fileContent = $this->httpClient::withUserAgent($this->userAgent())->get($packageDownloadLink)->body();
if (! $fileContent) {
throw new NoDownloadLinkException($this);
}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"fakerphp/faker": "^1.23",
"filament/filament": "^3.2",
"jeffgreco13/filament-breezy": "^2.4",
"jigarakatidus/laravel-http-to-curl": "^1.0",
"laravel/framework": "^11.9",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
Expand Down
106 changes: 105 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad6e9d3

Please sign in to comment.