Remove `m_compress` member.

This commit is contained in:
Matthieu Gautier 2020-08-12 14:58:58 +02:00
parent ee17b0739a
commit 6f0d3003ac
2 changed files with 1 additions and 3 deletions

View File

@ -247,7 +247,7 @@ ContentResponse::create_mhd_response(const RequestContext& request)
}
}
bool shouldCompress = m_compress && can_compress(request);
bool shouldCompress = can_compress(request);
if (shouldCompress) {
std::vector<Bytef> compr_buffer(compressBound(m_content.size()));
uLongf comprLen = compr_buffer.capacity();
@ -319,7 +319,6 @@ ContentResponse::ContentResponse(const std::string& root, bool verbose, bool wit
m_withTaskbar(withTaskbar),
m_withLibraryButton(withLibraryButton),
m_blockExternalLinks(blockExternalLinks),
m_compress(is_compressible_mime_type(mimetype)),
m_bookName(""),
m_bookTitle("")
{

View File

@ -100,7 +100,6 @@ class ContentResponse : public Response {
bool m_withTaskbar;
bool m_withLibraryButton;
bool m_blockExternalLinks;
bool m_compress;
std::string m_bookName;
std::string m_bookTitle;
};