Patch range header for single chunk files and multi message files

This commit is contained in:
split / May 2023-05-22 11:20:14 -07:00 committed by GitHub
parent 72efec9f6d
commit 74c63f5f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,