Send Accept-Language header to ensure English.

This commit is contained in:
Pachira 2023-07-06 23:12:57 +00:00
parent ef9e439e19
commit fb9d9b02a0

View file

@ -35,6 +35,7 @@ final class WebLookup implements \Uiharu\ILookup {
CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; FlashiiBot/2.5; Uiharu/' . UIH_VERSION . '; +http://fii.moe/uiharu)',
CURLOPT_HTTPHEADER => [
'Accept: text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8',
'Accept-Language: en-GB, en;q=0.9, ja-jp;q=0.6, *;q=0.5',
],
]);
return $curl;