Skip to content

Commit

Permalink
add user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jun 6, 2024
1 parent face701 commit aa90d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Jobs/FetchVoteMonitorLiveDataJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class FetchVoteMonitorLiveDataJob implements ShouldQueue, ShouldBeUnique
public function handle(): void
{
$data = Http::acceptJson()
->withUserAgent(config('app.name'))
->withToken(config('services.votemonitor.apikey'))
->get(config('services.votemonitor.url'))
->throw()
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|
*/

'name' => env('APP_NAME', 'Laravel'),
'name' => env('APP_NAME', 'WeVote4.EU'),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit aa90d20

Please sign in to comment.