mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-22 17:15:18 -04:00
Moved ByteRange to a header file of its own
This commit is contained in:
1 parent
3fba8c20a0
commit
0c5bb3fcfe
4 files changed
+46
-18
No files matched your search
@@ -39,7 +39,7 @@ bool is_compressible_mime_type(const std::string& mimeType)
|
||||
|| mimeType.find("application/json") != string::npos;
|
||||
}
|
||||
|
||||
int get_range_len(const kiwix::Entry& entry, RequestContext::ByteRange range)
|
||||
int get_range_len(const kiwix::Entry& entry, ByteRange range)
|
||||
{
|
||||
const int64_t entrySize = entry.getSize();
|
||||
return range.last() == -1
|
||||
|
||||
Reference in new issue
Block a user