File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { IncomingMessage } from "node:http" ;
1
2
import { IncomingMessage as NodeIncomingMessage } from "unenv/runtime/node/http/_request" ;
2
3
import { ServerResponse as NodeServerResponse } from "unenv/runtime/node/http/_response" ;
3
4
import type { App } from "../app" ;
@@ -10,7 +11,6 @@ import {
10
11
setResponseStatus ,
11
12
splitCookiesString ,
12
13
} from "../utils" ;
13
- import { IncomingMessage } from "node:http" ;
14
14
15
15
export interface PlainRequest {
16
16
_eventOverrides ?: Partial < H3Event > ;
@@ -67,7 +67,8 @@ export async function _handlePlainRequest(app: App, request: PlainRequest) {
67
67
68
68
// Shim for Node.js request and response objects
69
69
// TODO: Remove in next major version
70
- const nodeReq = new NodeIncomingMessage ( ) as unknown /* unenv */ as IncomingMessage ;
70
+ const nodeReq =
71
+ new NodeIncomingMessage ( ) as unknown /* unenv */ as IncomingMessage ;
71
72
const nodeRes = new NodeServerResponse ( nodeReq ) ;
72
73
73
74
// Fill node request properties
You can’t perform that action at this time.
0 commit comments