Skip to content

Commit

Permalink
Fix Wayback Machine timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Jun 10, 2022
1 parent 68c2292 commit 1cd5091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helper/WaybackMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function saveToArchive(string $url): bool

$archiveUrl = self::$baseUrl . '/save/' . $url;

$request = Http::timeout(1);
$request = Http::timeout(30);
if (config('html-meta.user_agents', false)) {
$agents = config('html-meta.user_agents');
$request->withHeaders(['User-Agent' => $agents[array_rand($agents)]]);
Expand Down

0 comments on commit 1cd5091

Please sign in to comment.