From 143019a38cb88661ce78ca3799dc1c0779c6c563 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 2 Dec 2025 17:24:27 -0500 Subject: [PATCH] Fix #2284 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index f63f76c..62be061 100644 --- a/httplib.h +++ b/httplib.h @@ -4687,7 +4687,6 @@ inline EncodingType encoding_type(const Request &req, const Response &res) { return EncodingType::None; } -#ifdef CPPHTTPLIB_ZLIB_SUPPORT inline bool nocompressor::compress(const char *data, size_t data_length, bool /*last*/, Callback callback) { @@ -4695,6 +4694,7 @@ inline bool nocompressor::compress(const char *data, size_t data_length, return callback(data, data_length); } +#ifdef CPPHTTPLIB_ZLIB_SUPPORT inline gzip_compressor::gzip_compressor() { std::memset(&strm_, 0, sizeof(strm_)); strm_.zalloc = Z_NULL;