fix
This commit is contained in:
parent
c0e042ce0d
commit
8d8a6aecc5
|
|
@ -17,10 +17,10 @@ export const _ = {
|
||||||
const body = await req.arrayBuffer();
|
const body = await req.arrayBuffer();
|
||||||
const headers = {} as Record<string, string>;
|
const headers = {} as Record<string, string>;
|
||||||
req.headers.forEach((v, k) => {
|
req.headers.forEach((v, k) => {
|
||||||
// if (k.startsWith("sec-")) return;
|
if (k.startsWith("sec-")) return;
|
||||||
// if (k.startsWith("connection")) return;
|
if (k.startsWith("connection")) return;
|
||||||
// if (k.startsWith("dnt")) return;
|
if (k.startsWith("dnt")) return;
|
||||||
// if (k.startsWith("host")) return;
|
if (k.startsWith("host")) return;
|
||||||
headers[k] = v;
|
headers[k] = v;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -47,6 +47,8 @@ export const _ = {
|
||||||
delete res_headers["content-encoding"];
|
delete res_headers["content-encoding"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(url, res_headers);
|
||||||
|
|
||||||
return new Response(res_body, { headers: res_headers });
|
return new Response(res_body, { headers: res_headers });
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
new Response(
|
new Response(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue