Skip to content

Commit

Permalink
Fix deprecated condition before proceeding to next middleware at server
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Dec 25, 2024
1 parent 7845256 commit ee5a420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class Server extends (EventEmitter as new () => TypedEmitter<Server.Event
this.server
.get('*', (req, res, next) =>
this.preprocess(req, res).then(() => {
if (!res.finished) next()
if (!res.writableEnded) next()
})
)
.use(express.static(this.inputDir))
Expand Down

0 comments on commit ee5a420

Please sign in to comment.