[ticket/17443] Use default */* accept header (like curl etc)

PHPBB-17443
This commit is contained in:
rxu 2024-11-25 16:06:44 +07:00
parent 253579761d
commit 13945f56a9
No known key found for this signature in database
GPG key ID: 8117904FEDEFDD17

View file

@ -53,7 +53,7 @@ class file_downloader
'timeout' => $timeout, 'timeout' => $timeout,
'headers' => [ 'headers' => [
'user-agent' => 'phpBB/' . PHPBB_VERSION, 'user-agent' => 'phpBB/' . PHPBB_VERSION,
'accept' => 'text/html,application/xhtml+xml,application/xml' 'accept' => '*/*',
], ],
]); ]);
} }