And that's probably it

This commit is contained in:
May 2024-03-03 19:34:16 -08:00
parent 25afbf493c
commit fd4441633e
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ node_modules
.data .data
out out
dist dist
tsconfig.tsbuildinfo

View file

@ -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) => {