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 | 9f0859a72731e651a78b3024bf532e8be6e90378 (patch) | |
tree | a7fbb42eec0107d5b788151f98ae2fee0e6c00aa | |
parent | Set title User-Agent (diff) | |
download | src-9f0859a72731e651a78b3024bf532e8be6e90378.tar.gz src-9f0859a72731e651a78b3024bf532e8be6e90378.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.
-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 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); |