fix(edge): allow `Request` cloning via `NextRequest` (#53157)
### What? Allow the following: ```ts new NextRequest(new Request(...)) ``` ### Why? Cloning a request by passing it to the constructor of another `Request` is allowed by the spec: https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#parameters ### How? If the passed argument is an instance of `Request`, we pass it as-is to `super()` Fixes #52967 Closes NEXT-1468
Showing
Please
register
or
sign in
to comment