mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 19:26:21 +00:00
Allow redirects for '/plugins install <URL>
Fix https://github.com/profanity-im/profanity/issues/1901 Suggested by @jubalh
This commit is contained in:
@@ -159,6 +159,8 @@ http_file_get(void* userdata)
|
|||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "profanity");
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "profanity");
|
||||||
|
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||||
|
|
||||||
if (cafile) {
|
if (cafile) {
|
||||||
curl_easy_setopt(curl, CURLOPT_CAINFO, cafile);
|
curl_easy_setopt(curl, CURLOPT_CAINFO, cafile);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user