mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Allow redirects for '/plugins install <URL>
Fix https://github.com/profanity-im/profanity/issues/1901 Suggested by @jubalh
This commit is contained in:
parent
9741f192a0
commit
30fe5f0fb9
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user