deno icon indicating copy to clipboard operation
deno copied to clipboard

1.25.2 `Deno.serve` `Request.clone()` always throws error

Open tsar-boomba opened this issue 2 years ago • 0 comments

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();
});

tsar-boomba avatar Sep 11 '22 01:09 tsar-boomba