summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-09-27 19:30:01 -0400
committerJune McEnroe <june@causal.agency>2019-09-27 19:30:01 -0400
commit54d041ca969cb1abbdcbf0926208d6d419ef6f5f (patch)
treee037acccbc2cf34d0d6dd41fa87f37aabb43158b
parentAdd Trail of Lightning (diff)
downloadsrc-54d041ca969cb1abbdcbf0926208d6d419ef6f5f.tar.gz
src-54d041ca969cb1abbdcbf0926208d6d419ef6f5f.zip
Fail on HTTP failure status in title
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 199c18d8..a773cc7c 100644
--- a/bin/title.c
+++ b/bin/title.c
@@ -158,6 +158,7 @@ int main(int argc, char *argv[]) {
 	curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
 	curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
 	curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L);
+	curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L);
 
 	curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, handleBody);