Skip to content

Commit

Permalink
fix(updateUriType): finished stream -> empty mime
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Jul 9, 2024
1 parent f5d458c commit db34eb5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/io/import/processors/updateUriType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ function detectStreamType(stream: ReadableStream) {
},
});

stream.pipeTo(writableStream).catch((err) => {
if (err !== DoneSignal) {
reject(err);
}
});
stream
.pipeTo(writableStream)
.then(() => {
resolve('');
})
.catch((err) => {
if (err !== DoneSignal) {
reject(err);
}
});
});
}

Expand Down

0 comments on commit db34eb5

Please sign in to comment.