浏览代码

Fix incorrect content_encoding for Brotli (#763)

Unkorunk 5 年之前
父节点
当前提交
b21dc8cbe0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
       }