mirror of https://github.com/kiwix/libkiwix.git
Split a long line
This commit is contained in:
parent
16bd79fa1b
commit
5f1918d005
|
@ -336,7 +336,8 @@ void Response::set_entry(const Entry& entry, const RequestContext& request) {
|
||||||
set_cacheable();
|
set_cacheable();
|
||||||
|
|
||||||
m_byteRange = request.get_range().resolve(entry.getSize());
|
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();
|
zim::Blob raw_content = entry.getBlob();
|
||||||
const std::string content = string(raw_content.data(), raw_content.size());
|
const std::string content = string(raw_content.data(), raw_content.size());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue