This commit is contained in:
wearrrrr 2024-07-29 23:54:46 -05:00
parent e789a14592
commit 91f8d6f6b7

View file

@ -11,7 +11,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
ctx.args[0] = encodeUrl(ctx.args[0].toString()); ctx.args[0] = encodeUrl(ctx.args[0].toString());
} else if (ctx.args[0] instanceof Request && ctx.args[0].url) { } else if (ctx.args[0] instanceof Request && ctx.args[0].url) {
Object.defineProperty(ctx.args[0], "url", { Object.defineProperty(ctx.args[0], "url", {
value: encodeUrl(ctx.args[0].url) value: encodeUrl(ctx.args[0].url),
}); });
} }
}, },