We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d18f56b commit 498a540Copy full SHA for 498a540
src/adapters/plain.ts
@@ -10,6 +10,7 @@ import {
10
setResponseStatus,
11
splitCookiesString,
12
} from "../utils";
13
+import { IncomingMessage } from "node:http";
14
15
export interface PlainRequest {
16
_eventOverrides?: Partial<H3Event>;
@@ -66,7 +67,7 @@ export async function _handlePlainRequest(app: App, request: PlainRequest) {
66
67
68
// Shim for Node.js request and response objects
69
// TODO: Remove in next major version
- const nodeReq = new NodeIncomingMessage();
70
+ const nodeReq = new NodeIncomingMessage() as unknown /* unenv */ as IncomingMessage;
71
const nodeRes = new NodeServerResponse(nodeReq);
72
73
// Fill node request properties
0 commit comments