aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 8ad385d..b6df2c9 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -876,6 +876,7 @@ static int lpm_get(lua_State* L) {
if (callback_function) {
lua_pushvalue(L, callback_function);
lua_pushinteger(L, total_downloaded);
+ lua_pushinteger(L, content_length);
lua_call(L, 1, 0);
}
fwrite(buffer, sizeof(char), length, file);