diff options
author | June McEnroe <june@causal.agency> | 2020-07-25 22:41:59 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-25 22:41:59 +0000 |
commit | 98bdd45c959ff4de70a0081d156fa72130bce7fd (patch) | |
tree | 771553003e7673b5d5b6bcfd63c919c70eab72fe | |
parent | Set pull.rebase true (diff) | |
download | src-98bdd45c959ff4de70a0081d156fa72130bce7fd.tar.gz src-98bdd45c959ff4de70a0081d156fa72130bce7fd.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |