[ticket/17443] Fix HTTP 403 response to Guzzle client requests for some hosts

PHPBB-17443
This commit is contained in:
rxu 2024-11-25 13:30:33 +07:00
parent 7baba29d9d
commit 253579761d
No known key found for this signature in database
GPG key ID: 8117904FEDEFDD17

View file

@ -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'
],
]);
}