Moved ByteRange to a header file of its own

This commit is contained in:
Veloman Yunkan committed 2020-05-23 20:08:53 +04:00
1 parent 3fba8c20a0
commit 0c5bb3fcfe
4 files changed
+46 -18

No files matched your search

+1 -1
View File
@@ -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