mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -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,
|
args: argArray,
|
||||||
newTarget: newTarget,
|
newTarget: newTarget,
|
||||||
return: (r: any) => {
|
return: (r: any) => {
|
||||||
|
earlyreturn = true;
|
||||||
returnValue = r;
|
returnValue = r;
|
||||||
},
|
},
|
||||||
call: () => {
|
call: () => {
|
||||||
|
|
|
@ -16,11 +16,11 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
client.Proxy("Headers", {
|
// client.Proxy("Headers", {
|
||||||
construct(ctx) {
|
// construct(ctx) {
|
||||||
ctx.args[0] = rewriteHeaders(ctx.args[0]);
|
// ctx.args[0] = rewriteHeaders(ctx.args[0]);
|
||||||
},
|
// },
|
||||||
});
|
// });
|
||||||
|
|
||||||
client.Proxy("Request", {
|
client.Proxy("Request", {
|
||||||
construct(ctx) {
|
construct(ctx) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue