Code cleanup

This commit is contained in:
yhirose committed 2024-09-07 10:15:22 -04:00
1 parent 01a52aa8bd
commit f6e4e2d0f3
1 file changed
+3 -2
+3 -2
View File
@@ -3765,8 +3765,9 @@ inline bool can_compress_content_type(const std::string &content_type) {
case "application/protobuf"_t:
case "application/xhtml+xml"_t: return true;
default:
return !content_type.rfind("text/", 0) && tag != "text/event-stream"_t;
case "text/event-stream"_t: return false;
default: return !content_type.rfind("text/", 0);
}
}