Skip to content

Commit

Permalink
fixed #477
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Sep 6, 2018
1 parent 363865c commit 87ff31b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Utilities/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function download($alias, $version)
$url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token'];
}

$response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]);
$response = static::getRemote($url, ['timeout' => 50, 'track_redirects' => true]);

// Exception
if ($response instanceof RequestException) {
Expand Down
2 changes: 1 addition & 1 deletion app/Utilities/Versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function getLatestVersion($url)
{
$latest = '0.0.0';

$response = static::getRemote($url, ['timeout' => 1, 'referer' => true]);
$response = static::getRemote($url, ['timeout' => 10, 'referer' => true]);

// Exception
if ($response instanceof RequestException) {
Expand Down

0 comments on commit 87ff31b

Please sign in to comment.