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.
_request
in
1 parent 41dbfa8 commit 7fcd156Copy full SHA for 7fcd156
1 file changed
src/runtime/internal/app.ts
@@ -125,11 +125,9 @@ function createNitroApp(): NitroApp {
125
const nativeFetch = globalThis.fetch;
126
globalThis.fetch = (input: RequestInfo | URL, init?: RequestInit) => {
127
if (typeof input === "string" && input.charCodeAt(0) === 47 /* '/' */) {
128
- return request(input, init);
129
- }
130
- if ("_request" in (input as Request)) {
131
- input = (input as any)._request;
+ return request(input, init); // local request
132
}
+ input = (input as any)._request || input; // unwrap srvx Request
133
return nativeFetch(input, init);
134
};
135
0 commit comments