From 8836c4bde2366908d45b89fd7788fd0aa09288af Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 27 Sep 2019 19:30:01 -0400 Subject: Fail on HTTP failure status in title --- bin/title.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/title.c b/bin/title.c index 47343d48..cf394dd0 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); -- cgit 1.4.1