diff options
-rw-r--r-- | abuild-fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/abuild-fetch.c b/abuild-fetch.c index 1b9e4d0..cff8fe6 100644 --- a/abuild-fetch.c +++ b/abuild-fetch.c @@ -135,7 +135,8 @@ int fetch(char *url, const char *destdir) if (access(outfile, F_OK) == 0) goto fetch_done; - if (insecure) { + /* enable insecure mode when http. This may be useful when it redirects to https */ + if (insecure || strstr(url, "http://") == url) { add_opt(&curlcmd, "--insecure"); add_opt(&wgetcmd, "--no-check-certificate"); } |