mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
ssd no
This commit is contained in:
parent
5bf5e29163
commit
430c7ad6ec
1 changed files with 0 additions and 9 deletions
|
@ -8,15 +8,6 @@ export default function (client: ScramjetClient, self: Self) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
client.Proxy("XMLHttpRequest.prototype.setRequestHeader", {
|
|
||||||
apply(ctx) {
|
|
||||||
let headerObject = Object.fromEntries([ctx.args]);
|
|
||||||
headerObject = rewriteHeaders(headerObject, client.meta);
|
|
||||||
|
|
||||||
ctx.args = Object.entries(headerObject)[0];
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
client.Trap("XMLHttpRequest.prototype.responseURL", {
|
client.Trap("XMLHttpRequest.prototype.responseURL", {
|
||||||
get(ctx) {
|
get(ctx) {
|
||||||
return decodeUrl(ctx.get() as string);
|
return decodeUrl(ctx.get() as string);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue