Merge pull request #8279

f7d50cb EPEE: Remove gzip_encoding.h (Jeffrey)
This commit is contained in:
luigi1111 2022-05-10 16:50:17 -05:00
commit 7cdbd25042
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 1 additions and 237 deletions

View file

@ -39,11 +39,6 @@
#include "net_helper.h"
#include "http_client_base.h"
#ifdef HTTP_ENABLE_GZIP
#include "gzip_encoding.h"
#endif
#include "string_tools.h"
#include "string_tools_lexical.h"
#include "reg_exp_definer.h"
@ -757,13 +752,9 @@ namespace net_utils
boost::smatch result; // 12 3
if(boost::regex_search( m_response_info.m_header_info.m_content_encoding, result, rexp_match_gzip, boost::match_default) && result[0].matched)
{
#ifdef HTTP_ENABLE_GZIP
m_pcontent_encoding_handler.reset(new content_encoding_gzip(this, result[3].matched));
#else
m_pcontent_encoding_handler.reset(new do_nothing_sub_handler(this));
LOG_ERROR("GZIP encoding not supported in this build, please add zlib to your project and define HTTP_ENABLE_GZIP");
LOG_ERROR("GZIP encoding not supported");
return false;
#endif
}
else
{