Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response implementation does not meet expectations #646

Open
2234839 opened this issue Aug 19, 2024 · 1 comment
Open

Response implementation does not meet expectations #646

2234839 opened this issue Aug 19, 2024 · 1 comment

Comments

@2234839
Copy link

2234839 commented Aug 19, 2024

  const r= await new Response("500", {
    status: 500,
    headers: {
      "Content-Type": "text/plain",
    },
  }).body;
  console.log("[r]", r); 

This is supposed to be ReadableStream, but now it's undefined

@2234839 2234839 changed the title Respones Response implementation does not meet expectations Aug 19, 2024
@2234839 2234839 closed this as completed Aug 19, 2024
@2234839 2234839 reopened this Aug 19, 2024
@saghul
Copy link
Owner

saghul commented Aug 19, 2024

Yep, this is known as the current fetch polyfill in use if not great. I'm working oon replacing it with something better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants