Higher timeout for web requests (fuck you, catbox.moe).

This commit is contained in:
flash 2023-01-25 20:51:53 +00:00
parent 8f38e5fd56
commit e81dc14740

View file

@ -30,7 +30,7 @@ final class WebLookup implements \Uiharu\ILookup {
CURLOPT_CONNECTTIMEOUT => 2,
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
CURLOPT_TIMEOUT => 2,
CURLOPT_TIMEOUT => 3,
CURLOPT_DEFAULT_PROTOCOL => 'https',
CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible) Uiharu/' . UIH_VERSION,
CURLOPT_HTTPHEADER => [