Disable zipping first yielded chunk, which may produce incorrect content

This commit is contained in:
Paul Kulchenko 2022-04-19 21:42:38 -07:00
parent 9020b071ac
commit c3d9bf6213

View file

@ -2442,6 +2442,7 @@ static int LuaCallWithYield(lua_State *L) {
YL = co;
generator = YieldGenerator;
if (!isyielding) isyielding = 1;
istext = false; // reset istext flag to avoid zipping yielded chunk
status = LUA_OK;
}
return status;