Use range-finder for streaming range requests
This commit is contained in:
parent
ec0943cdad
commit
a795602e19
5 changed files with 185 additions and 121 deletions
|
@ -442,7 +442,10 @@ export async function decryptAttachmentV2ToSink(
|
|||
} catch (error) {
|
||||
// These errors happen when canceling fetch from `attachment://` urls,
|
||||
// ignore them to avoid noise in the logs.
|
||||
if (error.name === 'AbortError') {
|
||||
if (
|
||||
error.name === 'AbortError' ||
|
||||
error.code === 'ERR_STREAM_PREMATURE_CLOSE'
|
||||
) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue