From 9f0859a72731e651a78b3024bf532e8be6e90378 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 10 Sep 2019 02:34:48 -0400 Subject: Set Accept-Encoding in title Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it. --- bin/title.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/title.c b/bin/title.c index 3383e9ca..65270a6c 100644 --- a/bin/title.c +++ b/bin/title.c @@ -159,6 +159,7 @@ int main(int argc, char *argv[]) { curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); curl_easy_setopt(curl, CURLOPT_USERAGENT, "title/1.0"); + curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, ""); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L); -- cgit 1.4.1