We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 366d073 commit 90da199Copy full SHA for 90da199
httplib.h
@@ -2316,7 +2316,8 @@ inline const char *status_message(int status) {
2316
}
2317
2318
inline bool can_compress_content_type(const std::string &content_type) {
2319
- return !content_type.find("text/") || content_type == "image/svg+xml" ||
+ return (!content_type.find("text/") && content_type != "text/event-stream") ||
2320
+ content_type == "image/svg+xml" ||
2321
content_type == "application/javascript" ||
2322
content_type == "application/json" ||
2323
content_type == "application/xml" ||
0 commit comments