From e743b8cd57a4f2563c552eead4521aa9cc75456f Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 30 Oct 2019 08:21:59 -0400 Subject: [PATCH] Fix #254 --- httplib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httplib.h b/httplib.h index b89650d..de035f6 100644 --- a/httplib.h +++ b/httplib.h @@ -3174,6 +3174,9 @@ inline std::shared_ptr Client::send_with_content_provider( const char *method, const char *path, const Headers &headers, const std::string &body, size_t content_length, ContentProvider content_provider, const char *content_type, bool compress) { +#ifndef CPPHTTPLIB_ZLIB_SUPPORT + (void)compress; +#endif Request req; req.method = method;