Skip to content

Commit

Permalink
Fix type issue in rscRequestHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 28, 2024
1 parent 8d607da commit 2cd20e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/rsc/rscRequestHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function createRscRequestHandler(
if (mwRouter) {
// @MARK: Temporarily create Fetch Request here.
// Ideally we'll have converted this whole handler to be Fetch Req and Response
const webReq = normalizeNodeRequest(req, DefaultFetchAPI.Request)
const webReq = normalizeNodeRequest(req, DefaultFetchAPI)
const matchedMw = mwRouter.find(webReq.method as HTTPMethod, webReq.url)

const [mwResponse] = await invoke(
Expand Down

0 comments on commit 2cd20e4

Please sign in to comment.