소스 검색

accept protobuf encoding (#1096)

Co-authored-by: rodolphe <rodolphe@zen.ly>
Rodolphe 4 년 전
부모
커밋
c7486ead96
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      httplib.h

+ 1 - 0
httplib.h

@@ -2867,6 +2867,7 @@ inline bool can_compress_content_type(const std::string &content_type) {
          content_type == "application/javascript" ||
          content_type == "application/json" ||
          content_type == "application/xml" ||
+         content_type == "application/protobuf" ||
          content_type == "application/xhtml+xml";
 }