beaker-core icon indicating copy to clipboard operation
beaker-core copied to clipboard

The experimental.globalFetch API doesn't handle redirects.

Open kickscondor opened this issue 6 years ago • 0 comments

Again, thank you for this fine software - I love it! I've been using globalFetch to read index.html pages, which has led me to discover that redirect errors (such as 301) do not automatically redirect (like the Fetch API normally does.) This is because Beaker doesn't use the browser's fetch call - it uses Node's http.request, throwing away many of the options which are passed in.

It seems that a Fetch polyfill library could bring this to parity - but wanted to ask here if it would be appropriate to submit a pull request like that. Ciao!

kickscondor avatar Jun 29 '19 06:06 kickscondor