mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 13:36:25 -08:00
And that's probably it
This commit is contained in:
parent
25afbf493c
commit
fd4441633e
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ node_modules
|
||||||
.data
|
.data
|
||||||
out
|
out
|
||||||
dist
|
dist
|
||||||
|
tsconfig.tsbuildinfo
|
|
@ -80,7 +80,7 @@ export default function (files: Files) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return ctx.req.method == "HEAD" ? ctx.body(null) : ctx.stream(async (webStream) => {
|
return ctx.req.method == "HEAD" ? ctx.body(null) : ctx.stream(async (webStream) => {
|
||||||
webStream.pipe(Readable.toWeb(stream) as ReadableStream)
|
webStream.pipe(Readable.toWeb(stream) as ReadableStream).catch(e => {}) // emits an AbortError for some reason so this catches that
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
Loading…
Reference in a new issue