mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 22:10:01 -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", {
|
||||
get(ctx) {
|
||||
return decodeUrl(ctx.get() as string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue