aboutsummaryrefslogtreecommitdiff
path: root/lpm.c
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-09-18 17:37:45 -0400
committerAdam <adamdharrison@gmail.com>2022-09-18 17:37:45 -0400
commitda37e3ed1e11853c5133c9851a4fc2dbf2ca8872 (patch)
treeceb417a9fdb539d0e5fa010151e0534348755103 /lpm.c
parentd60333f917844e3fedfcdb6c8bba1eb8fc454cd9 (diff)
downloadlite-xl-plugin-manager-da37e3ed1e11853c5133c9851a4fc2dbf2ca8872.tar.gz
lite-xl-plugin-manager-da37e3ed1e11853c5133c9851a4fc2dbf2ca8872.zip
Committing these before I really screw things up.
Diffstat (limited to 'lpm.c')
-rw-r--r--lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lpm.c b/lpm.c
index 0c5d228..117e616 100644
--- a/lpm.c
+++ b/lpm.c
@@ -429,6 +429,7 @@ static int lpm_get(lua_State* L) {
const char* path = luaL_optstring(L, 2, NULL);
// curl_easy_reset(curl);
curl_easy_setopt(curl, CURLOPT_URL, url);
+ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
if (path) {
FILE* file = fopen(path, "wb");
if (!file)