Split a long line

This commit is contained in:
Veloman Yunkan 2020-05-26 13:04:03 +04:00
parent 16bd79fa1b
commit 5f1918d005
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ void Response::set_entry(const Entry& entry, const RequestContext& request) {
set_cacheable();
m_byteRange = request.get_range().resolve(entry.getSize());
if ( m_byteRange.kind() == ByteRange::RESOLVED_FULL_CONTENT && is_compressible_mime_type(mimeType) ) {
const bool noRange = m_byteRange.kind() == ByteRange::RESOLVED_FULL_CONTENT;
if ( noRange && is_compressible_mime_type(mimeType) ) {
zim::Blob raw_content = entry.getBlob();
const std::string content = string(raw_content.data(), raw_content.size());