We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c1c936 commit 40d5a27Copy full SHA for 40d5a27
.changeset/eager-wings-crash.md
@@ -0,0 +1,5 @@
1
+---
2
+"@solidjs/start": minor
3
4
+
5
+fix onBeforeResponse
packages/start/src/middleware/index.ts
@@ -36,7 +36,7 @@ function wrapResponseMiddleware(onBeforeResponse: ResponseMiddleware): Middlewar
36
37
const fetchEvent = getFetchEvent(h3Event);
38
const mwResponse = await onBeforeResponse(fetchEvent, {
39
- body: (resp as any)?.body,
+ body: resp,
40
});
41
if (mwResponse) return mwResponse;
42
};
0 commit comments