mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
more questionable hardcoding
This commit is contained in:
parent
a8d2784e80
commit
c2b74f9bd9
1 changed files with 8 additions and 1 deletions
|
@ -86,9 +86,16 @@ export async function swfetch(
|
|||
if (cookies.length) {
|
||||
headers.set("Cookie", cookies.join(";"));
|
||||
}
|
||||
if (url.href.includes("bulk")) {
|
||||
console.log(url, {
|
||||
headers: Object.entries(headers.headers),
|
||||
bod: request.body,
|
||||
});
|
||||
}
|
||||
|
||||
// TODO this is wrong somehow
|
||||
headers.set("Sec-Fetch-Mode", "navigate");
|
||||
headers.set("Sec-Fetch-Site", "same-origin");
|
||||
|
||||
const response: BareResponseFetch = await this.client.fetch(url, {
|
||||
method: request.method,
|
||||
|
@ -97,7 +104,7 @@ export async function swfetch(
|
|||
credentials: "omit",
|
||||
mode: request.mode === "cors" ? request.mode : "same-origin",
|
||||
cache: request.cache,
|
||||
redirect: request.redirect,
|
||||
redirect: "manual",
|
||||
//@ts-ignore why the fuck is this not typed mircosoft
|
||||
duplex: "half",
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue