From b21dc8cbe07e972637110d7255e2033e3ef62f9d Mon Sep 17 00:00:00 2001 From: Unkorunk <42465710+Unkorunk@users.noreply.github.com> Date: Fri, 20 Nov 2020 03:39:20 +1000 Subject: [PATCH] Fix incorrect content_encoding for Brotli (#763) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 01081d7..e6d5637 100644 --- a/httplib.h +++ b/httplib.h @@ -4581,7 +4581,7 @@ inline void Server::apply_ranges(const Request &req, Response &res, } else if (type == detail::EncodingType::Brotli) { #ifdef CPPHTTPLIB_BROTLI_SUPPORT compressor = detail::make_unique(); - content_encoding = "brotli"; + content_encoding = "br"; #endif }