fix: missed mimetype of stream in aria2 monitor

This commit is contained in:
Noah Hsu 2022-06-25 15:15:54 +08:00
parent ee2bc99e4c
commit 7dadab95b2

View File

@ -139,7 +139,7 @@ func (m *Monitor) Complete() error {
IsFolder: false, IsFolder: false,
}, },
ReadCloser: f, ReadCloser: f,
Mimetype: "", Mimetype: mimetype,
} }
return operations.Put(tsk.Ctx, account, dstDirActualPath, stream, tsk.SetProgress) return operations.Put(tsk.Ctx, account, dstDirActualPath, stream, tsk.SetProgress)
}, },