Make redbean compress w/o explicit content-type (#671)

This commit is contained in:
Paul Kulchenko 2022-11-01 23:15:20 -07:00 committed by GitHub
parent da8f5009fd
commit d7b88734cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 19 deletions

View file

@ -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;