why were we proxying headers?

This commit is contained in:
velzie 2024-08-31 19:25:31 -04:00
parent 8217897d1e
commit a1ce4e33b3
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
2 changed files with 6 additions and 5 deletions

View file

@ -218,6 +218,7 @@ export class ScramjetClient {
args: argArray,
newTarget: newTarget,
return: (r: any) => {
earlyreturn = true;
returnValue = r;
},
call: () => {

View file

@ -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) {