mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
kill snapshot.ts (untested)
This commit is contained in:
parent
9a39435c7d
commit
7f398cda17
7 changed files with 33 additions and 18 deletions
|
@ -1,4 +1,3 @@
|
|||
import { Request } from "../snapshot";
|
||||
import { ScramjetClient } from "./client";
|
||||
import { decodeUrl, encodeUrl } from "./shared";
|
||||
|
||||
|
@ -71,6 +70,8 @@ function handleMessage(
|
|||
if (handler.event !== "fetch") continue;
|
||||
|
||||
const request = data.scramjet$request;
|
||||
|
||||
const Request = client.natives["Request"];
|
||||
const fakeRequest = new Request(decodeUrl(request.url), {
|
||||
body: request.body,
|
||||
headers: new Headers(request.headers),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue