From c3d9bf62133714008574d69c1fc016f3bed77e54 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Tue, 19 Apr 2022 21:42:38 -0700 Subject: [PATCH] Disable zipping first yielded chunk, which may produce incorrect content --- tool/net/redbean.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 596f262ba..4dfbf6724 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -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;