fixed #477
This commit is contained in:
parent
363865c675
commit
87ff31b020
@ -107,7 +107,7 @@ class Updater
|
|||||||
$url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token'];
|
$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
|
// Exception
|
||||||
if ($response instanceof RequestException) {
|
if ($response instanceof RequestException) {
|
||||||
|
@ -91,7 +91,7 @@ class Versions
|
|||||||
{
|
{
|
||||||
$latest = '0.0.0';
|
$latest = '0.0.0';
|
||||||
|
|
||||||
$response = static::getRemote($url, ['timeout' => 1, 'referer' => true]);
|
$response = static::getRemote($url, ['timeout' => 10, 'referer' => true]);
|
||||||
|
|
||||||
// Exception
|
// Exception
|
||||||
if ($response instanceof RequestException) {
|
if ($response instanceof RequestException) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user