mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 13:56:27 -08:00
Patch range header for single chunk files and multi message files
This commit is contained in:
parent
72efec9f6d
commit
74c63f5f68
|
@ -309,7 +309,7 @@ export default class Files {
|
||||||
if (msg?.attachments) {
|
if (msg?.attachments) {
|
||||||
|
|
||||||
let attach = Array.from(msg.attachments.values())
|
let attach = Array.from(msg.attachments.values())
|
||||||
for (let i = (useRanges && xi == scan_msg_begin ? scan_files_begin : 0); i < (useRanges && xi == scan_msg_end ? scan_files_end : attach.length); i++) {
|
for (let i = (useRanges && xi == scan_msg_begin ? ( scan_files_begin - (xi*10) ) : 0); i < (useRanges && xi == scan_msg_end ? ( scan_files_end - (x1*10) + 1 ) : attach.length); i++) {
|
||||||
|
|
||||||
let d = await axios.get(
|
let d = await axios.get(
|
||||||
attach[i].url,
|
attach[i].url,
|
||||||
|
|
Loading…
Reference in a new issue