mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 22:10:01 -04:00
why were we proxying headers?
This commit is contained in:
parent
8217897d1e
commit
a1ce4e33b3
2 changed files with 6 additions and 5 deletions
|
@ -218,6 +218,7 @@ export class ScramjetClient {
|
|||
args: argArray,
|
||||
newTarget: newTarget,
|
||||
return: (r: any) => {
|
||||
earlyreturn = true;
|
||||
returnValue = r;
|
||||
},
|
||||
call: () => {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue