From 98bdd45c959ff4de70a0081d156fa72130bce7fd Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 25 Jul 2020 22:41:59 +0000 Subject: Fix setting second title request to GET Since 9c845be2797e2047547ec247cb037471aeb48bb0 in curl (7.71.0), setting CURLOPT_NOBODY to 1 sets the request method to HEAD, but setting it back to 0 does not change the method back to GET. Setting CURLOPT_HTTPGET both sets the request method and unsets CURLOPT_NOBODY. --- bin/title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/title.c') diff --git a/bin/title.c b/bin/title.c index 366289da..d6b53ce9 100644 --- a/bin/title.c +++ b/bin/title.c @@ -136,7 +136,7 @@ static CURLcode fetchTitle(const char *url) { body.len = 0; title = false; - curl_easy_setopt(curl, CURLOPT_NOBODY, 0L); + curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); code = curl_easy_perform(curl); return code; } -- cgit 1.4.1