diff options
author | June McEnroe <june@causal.agency> | 2019-09-10 02:34:48 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-09-10 02:34:48 -0400 |
commit | d4add47b07626260f2b9fb66b825d84e335c1227 (patch) | |
tree | 169e7891e945c1013a430bd291880de9b8d570ec /bin | |
parent | Set title User-Agent (diff) | |
download | src-d4add47b07626260f2b9fb66b825d84e335c1227.tar.gz src-d4add47b07626260f2b9fb66b825d84e335c1227.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | bin/title.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |