Skip to content

Commit 143019a

Browse files
committed
Fix #2284
1 parent 1d36013 commit 143019a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4687,14 +4687,14 @@ inline EncodingType encoding_type(const Request &req, const Response &res) {
46874687

46884688
return EncodingType::None;
46894689
}
4690-
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
46914690

46924691
inline bool nocompressor::compress(const char *data, size_t data_length,
46934692
bool /*last*/, Callback callback) {
46944693
if (!data_length) { return true; }
46954694
return callback(data, data_length);
46964695
}
46974696

4697+
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
46984698
inline gzip_compressor::gzip_compressor() {
46994699
std::memset(&strm_, 0, sizeof(strm_));
47004700
strm_.zalloc = Z_NULL;

0 commit comments

Comments
 (0)