mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 19:30:29 +00:00
Disable zipping first yielded chunk, which may produce incorrect content
This commit is contained in:
parent
9020b071ac
commit
c3d9bf6213
1 changed files with 1 additions and 0 deletions
|
@ -2442,6 +2442,7 @@ static int LuaCallWithYield(lua_State *L) {
|
||||||
YL = co;
|
YL = co;
|
||||||
generator = YieldGenerator;
|
generator = YieldGenerator;
|
||||||
if (!isyielding) isyielding = 1;
|
if (!isyielding) isyielding = 1;
|
||||||
|
istext = false; // reset istext flag to avoid zipping yielded chunk
|
||||||
status = LUA_OK;
|
status = LUA_OK;
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue