diff --git a/src/libkore.c b/src/libkore.c index 82966ad..396675d 100644 --- a/src/libkore.c +++ b/src/libkore.c @@ -251,7 +251,7 @@ lhttp_file_get(lua_State *L){ lua_error(L); } s[f->length] = '\0'; - lua_pushstring(L,s); + lua_pushlstring(L,s,read); return 1; }