summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-09-10 02:34:48 -0400
committerJune McEnroe <june@causal.agency>2019-09-10 02:34:48 -0400
commitd4add47b07626260f2b9fb66b825d84e335c1227 (patch)
tree169e7891e945c1013a430bd291880de9b8d570ec
parentSet title User-Agent (diff)
downloadsrc-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.c1
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);
 
follow=1'>Use -s to infer terminal sizeJune McEnroe 2019-07-12Add DCH to shottyJune McEnroe This makes htop mostly work. Scrolling region still missing. 2019-07-12Support insert mode in shottyJune McEnroe This is how curses puts characters into the bottom-right cell of the terminal. 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe