mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 08:00:02 -04:00
chore: prettier.... TWO!
This commit is contained in:
parent
3436d85888
commit
0d4ee9ee96
5 changed files with 18 additions and 18 deletions
|
@ -85,15 +85,15 @@ export default function (client: ScramjetClient, self: Self) {
|
|||
client.RawTrap(ctx.this, "response", {
|
||||
get() {
|
||||
if (ctx.this.responseType === "arraybuffer") return bodyab.buffer;
|
||||
|
||||
return body;
|
||||
|
||||
return body;
|
||||
},
|
||||
});
|
||||
client.RawTrap(ctx.this, "responseXML", {
|
||||
get() {
|
||||
const parser = new DOMParser();
|
||||
|
||||
return parser.parseFromString(body, "text/xml");
|
||||
|
||||
return parser.parseFromString(body, "text/xml");
|
||||
},
|
||||
});
|
||||
client.RawTrap(ctx.this, "getAllResponseHeaders", {
|
||||
|
@ -106,8 +106,8 @@ return parser.parseFromString(body, "text/xml");
|
|||
return (header: string) => {
|
||||
const re = new RegExp(`^${header}: (.*)$`, "m");
|
||||
const match = re.exec(headers);
|
||||
|
||||
return match ? match[1] : null;
|
||||
|
||||
return match ? match[1] : null;
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue