aboutsummaryrefslogtreecommitdiff
path: root/lpm.c
diff options
context:
space:
mode:
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)