From fb9d9b02a061509f3e6025110033fb47cd9d5f69 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 6 Jul 2023 23:12:57 +0000 Subject: [PATCH] Send Accept-Language header to ensure English. --- src/Lookup/WebLookup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Lookup/WebLookup.php b/src/Lookup/WebLookup.php index 731f4b7..8447c31 100644 --- a/src/Lookup/WebLookup.php +++ b/src/Lookup/WebLookup.php @@ -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;