From d4add47b07626260f2b9fb66b825d84e335c1227 Mon Sep 17 00:00:00 2001 From: Curtis 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 816df317..b9cf4a49 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