diff --git a/src/client/client.ts b/src/client/client.ts index ab3d839..c2cd8fb 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -218,6 +218,7 @@ export class ScramjetClient { args: argArray, newTarget: newTarget, return: (r: any) => { + earlyreturn = true; returnValue = r; }, call: () => { diff --git a/src/client/shared/requests/fetch.ts b/src/client/shared/requests/fetch.ts index c776db5..e4576f2 100644 --- a/src/client/shared/requests/fetch.ts +++ b/src/client/shared/requests/fetch.ts @@ -16,11 +16,11 @@ export default function (client: ScramjetClient, self: typeof globalThis) { }, }); - client.Proxy("Headers", { - construct(ctx) { - ctx.args[0] = rewriteHeaders(ctx.args[0]); - }, - }); + // client.Proxy("Headers", { + // construct(ctx) { + // ctx.args[0] = rewriteHeaders(ctx.args[0]); + // }, + // }); client.Proxy("Request", { construct(ctx) {