add reply to middlewareResponse

This commit is contained in:
2023-05-12 11:56:48 +02:00
parent 301a6d2c3d
commit 1c668e5892
2 changed files with 6 additions and 4 deletions

3
mod.ts
View File

@@ -21,6 +21,7 @@ type RouteHandler = (
type RouteMiddlewareHandler = (
req: RouteRequest,
rep: RouteReply,
done: () => Promise<number[]>,
) => Promise<void>;
@@ -124,7 +125,7 @@ export class HTTPServer {
resolveAction = resolve;
});
};
this.middlewareHandler(routeRequest, middlewarePromise);
this.middlewareHandler(routeRequest, routeReply, middlewarePromise);
}
if (this.staticServePath && filepath.startsWith(this.staticServePath)) {