fix build option issues; refine cmake

This commit is contained in:
Chunting Gu
2021-02-05 14:12:26 +08:00
parent 1c35b97654
commit 7f345b7a4e
26 changed files with 70 additions and 65 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
#include "webcc/string.h"
#include "webcc/utility.h"
#ifdef WEBCC_ENABLE_GZIP
#if WEBCC_ENABLE_GZIP
#include "webcc/gzip.h"
#endif
@@ -48,7 +48,7 @@ bool StringBodyHandler::Finish() {
auto body = std::make_shared<StringBody>(std::move(content_), IsCompressed());
#ifdef WEBCC_ENABLE_GZIP
#if WEBCC_ENABLE_GZIP
LOG_INFO("Decompress the HTTP content...");
if (!body->Decompress()) {
LOG_ERRO("Cannot decompress the HTTP content!");