mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +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([
|
return new Client([
|
||||||
'base_uri' => $host,
|
'base_uri' => $host,
|
||||||
'timeout' => $timeout,
|
'timeout' => $timeout,
|
||||||
|
'headers' => [
|
||||||
|
'user-agent' => 'phpBB/' . PHPBB_VERSION,
|
||||||
|
'accept' => 'text/html,application/xhtml+xml,application/xml'
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user