Quellcode durchsuchen

Fix incorrect content_encoding for Brotli (#763)

Unkorunk vor 5 Jahren
Ursprung
Commit
b21dc8cbe0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      httplib.h

+ 1 - 1
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<detail::brotli_compressor>();
-        content_encoding = "brotli";
+        content_encoding = "br";
 #endif
       }