jhiesey / stream-http

Streaming node http in the browser
MIT License
354 stars 62 forks source link

You can ignore redirect with fetch #96

Closed jimmywarting closed 6 years ago

jimmywarting commented 6 years ago

Redirects are followed silently by the browser, so it isn't possible to access the 301/302 redirect pages.

You can with the fetch api...

fetch(url, {
  redirect: 'manual'
})

https://developer.mozilla.org/en-US/docs/Web/API/Request/redirect

jimmywarting commented 6 years ago

ups, dupe of #72