diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 9dfc9fe36..61cf37171 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -6180,7 +6180,9 @@ static char *SetStatus(unsigned code, const char *reason) { } cpm.statuscode = code; cpm.hascontenttype = false; - cpm.istext = false; // reset, as the headers are reset + // reset, as the headers are reset + // istext is -1 by default to interpret as true when not set + cpm.istext = -1; cpm.gotxcontenttypeoptions = 0; cpm.gotcachecontrol = 0; cpm.referrerpolicy = 0;