From faac0b7b899d1f272152e8dfd4823b9d0e2a8091 Mon Sep 17 00:00:00 2001 From: June 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(-) diff --git a/bin/title.c b/bin/title.c index a6a00832..be96a423 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