We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b4801 commit ab38ea4Copy full SHA for ab38ea4
src/adapters/_node/request.ts
@@ -16,8 +16,9 @@ export type NodeRequestContext = {
16
export const NodeRequest: {
17
new (nodeCtx: NodeRequestContext): ServerRequest;
18
} = /* @__PURE__ */ (() => {
19
- const NativeRequest = ((globalThis as any)._Request ??=
20
- globalThis.Request) as typeof globalThis.Request;
+ const NativeRequest = ((globalThis as any)[
+ Symbol.for("srvx.nativeRequest")
21
+ ] ??= globalThis.Request) as typeof globalThis.Request;
22
23
// Credits to hono/node adapter for global patching idea (https://github.com/honojs/node-server/blob/main/src/request.ts)
24
const PatchedRequest = class Request extends NativeRequest {
0 commit comments