Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/vite/src/node/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ export async function resolveHttpServer(
...httpsOptions,
allowHTTP1: true,
},
// @ts-expect-error TODO: is this correct?
app,
// When allowHTTP1 is true, the HTTP/2 server can handle HTTP/1.1 requests,
// making the Connect app compatible as a request listener
app as unknown as Parameters<typeof createSecureServer>[1],
)
}
}
Expand Down
Loading