Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
: 0))
#endif

// if CPPHTTPLIB_DO_NOT_DECOMPRESS is defined, the library will not decompress bodies

/*
* Headers
*/
Expand Down Expand Up @@ -2056,6 +2058,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
return receiver(buf, n);
};

#ifndef CPPHTTPLIB_DO_NOT_DECOMPRESS
#ifdef CPPHTTPLIB_ZLIB_SUPPORT
decompressor decompressor;

Expand All @@ -2077,6 +2080,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
status = 415;
return false;
}
#endif
#endif

auto ret = true;
Expand Down