mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
1096b094cb
2 changed files with 5 additions and 1 deletions
|
@ -51,6 +51,10 @@ class file_downloader
|
|||
return new Client([
|
||||
'base_uri' => $host,
|
||||
'timeout' => $timeout,
|
||||
'headers' => [
|
||||
'user-agent' => 'phpBB/' . PHPBB_VERSION,
|
||||
'accept' => '*/*',
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -382,7 +382,7 @@ class version_helper
|
|||
}
|
||||
else if ($info === false || $force_update)
|
||||
{
|
||||
$info = $this->file_downloader->get($this->host, $this->path, $this->file, $this->use_ssl ? 443 : 80);
|
||||
$info = $this->file_downloader->get($this->host, $this->path, $this->file, $this->use_ssl ? 443 : 80, 30);
|
||||
$error_string = $this->file_downloader->get_error_string();
|
||||
|
||||
if (!empty($error_string))
|
||||
|
|
Loading…
Add table
Reference in a new issue