mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/17443] Fix HTTP 403 response to Guzzle client requests for some hosts
PHPBB-17443
This commit is contained in:
@@ -51,6 +51,10 @@ class file_downloader
|
||||
return new Client([
|
||||
'base_uri' => $host,
|
||||
'timeout' => $timeout,
|
||||
'headers' => [
|
||||
'user-agent' => 'phpBB/' . PHPBB_VERSION,
|
||||
'accept' => 'text/html,application/xhtml+xml,application/xml'
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user