mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
Split a long line
This commit is contained in:
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user