summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-25 22:41:59 +0000
committerJune McEnroe <june@causal.agency>2020-07-25 22:41:59 +0000
commitfaac0b7b899d1f272152e8dfd4823b9d0e2a8091 (patch)
treefb57ecc50b1b44a8209ac0bf0196441222fea2ff /bin
parentSet pull.rebase true (diff)
downloadsrc-faac0b7b899d1f272152e8dfd4823b9d0e2a8091.tar.gz
src-faac0b7b899d1f272152e8dfd4823b9d0e2a8091.zip
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.
Diffstat (limited to '')
-rw-r--r--bin/title.c2
1 files changed, 1 insertions, 1 deletions
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;
 }