mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
Fix incorrect content_encoding for Brotli (#763)
This commit is contained in:
parent
e1133a2dcb
commit
b21dc8cbe0
@ -4581,7 +4581,7 @@ inline void Server::apply_ranges(const Request &req, Response &res,
|
|||||||
} else if (type == detail::EncodingType::Brotli) {
|
} else if (type == detail::EncodingType::Brotli) {
|
||||||
#ifdef CPPHTTPLIB_BROTLI_SUPPORT
|
#ifdef CPPHTTPLIB_BROTLI_SUPPORT
|
||||||
compressor = detail::make_unique<detail::brotli_compressor>();
|
compressor = detail::make_unique<detail::brotli_compressor>();
|
||||||
content_encoding = "brotli";
|
content_encoding = "br";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user