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

1.25.2 Deno.serve Request.clone() always throws error #15858

Closed
Tracked by #17146
tsar-boomba opened this issue Sep 11, 2022 · 0 comments · Fixed by #16174
Closed
Tracked by #17146

1.25.2 Deno.serve Request.clone() always throws error #15858

tsar-boomba opened this issue Sep 11, 2022 · 0 comments · Fixed by #16174
Labels
bug Something isn't working correctly

Comments

@tsar-boomba
Copy link
Contributor

Deno Version: 1.25.2
OS: Ubuntu 22

The request given to the Deno.serve callback always throws an error when running clone.

Example:

Deno.serve((req) => {
	console.log(req);
	console.log(req.clone()); // error
	return new Response();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
2 participants