소스 검색

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
       }