mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/17443] Fix HTTP 403 response to Guzzle client requests for some hosts
PHPBB-17443
This commit is contained in:
parent
7baba29d9d
commit
253579761d
1 changed files with 4 additions and 0 deletions
|
@ -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'
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue