From 049da6dc7be51d934cf0c95af5270e6c8b6466bf Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 5 Sep 2019 20:09:34 -0400 Subject: Handle lack of Content-Type --- bin/title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/title.c b/bin/title.c index 02076073..f80640bd 100644 --- a/bin/title.c +++ b/bin/title.c @@ -119,7 +119,7 @@ static CURLcode fetchTitle(const char *url) { char *type; code = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &type); if (code) return code; - if (strncmp(type, "text/html", 9)) return CURLE_OK; + if (!type || strncmp(type, "text/html", 9)) return CURLE_OK; body.len = 0; curl_easy_setopt(curl, CURLOPT_NOBODY, 0L); -- cgit 1.4.1 0705c031977'>this commit dontfiles
summary refs log tree commit diff
path: root/bin/cash/jobs.h (unfollow)
Commit message (Collapse)Author
2019-02-08Add hi -nJune McEnroe
2019-02-08Elaborate hi man pageJune McEnroe
2019-02-08Use set for parent in hiJune McEnroe
2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe
2019-02-08Match only the basename in hiJune McEnroe
2019-02-07Add mdoc syntax to hiJune McEnroe
2019-02-07Support multi-line C macros in hiJune McEnroe
2019-02-07Detect .mk files as makeJune McEnroe
2019-02-07Add make syntax to hiJune McEnroe
2019-02-07Add IRC output to hiJune McEnroe
2019-02-07Improve C syntax accuracy and add Format classJune McEnroe
2019-02-07Factor out hi checkJune McEnroe
Fix subexpression bounds check and compile pattends.
2019-02-07Add Escape class to hiJune McEnroe
2019-02-07Add Todo class and parent syntax constraintJune McEnroe