mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Code cleanup
This commit is contained in:
parent
01a52aa8bd
commit
f6e4e2d0f3
1 changed files with 3 additions and 2 deletions
|
@ -3765,8 +3765,9 @@ inline bool can_compress_content_type(const std::string &content_type) {
|
||||||
case "application/protobuf"_t:
|
case "application/protobuf"_t:
|
||||||
case "application/xhtml+xml"_t: return true;
|
case "application/xhtml+xml"_t: return true;
|
||||||
|
|
||||||
default:
|
case "text/event-stream"_t: return false;
|
||||||
return !content_type.rfind("text/", 0) && tag != "text/event-stream"_t;
|
|
||||||
|
default: return !content_type.rfind("text/", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue