Patch Changes
-
#5201
1235d48
Thanks @wydengyre! - fix: ensureminiflare
works with Node 21.7.0+ -
#5191
27fb22b
Thanks @mrbbot! - fix: ensure redirect responses handled correctly withdispatchFetch()
Previously, if your Worker returned a redirect response, calling
dispatchFetch(url)
would send another request to the originalurl
rather than the redirect. This change ensures redirects are followed correctly.- If your Worker returns a relative redirect or an absolute redirect with the same origin as the original
url
, the request will be sent to the Worker. - If your Worker instead returns an absolute redirect with a different origin, the request will be sent to the Internet.
- If a redirected request to a different origin returns an absolute redirect with the same origin as the original
url
, the request will also be sent to the Worker.
- If your Worker returns a relative redirect or an absolute redirect with the same origin as the original