- From: Tony Holdstock-Brown <notifications@github.com>
- Date: Thu, 16 Apr 2020 04:47:51 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 16 April 2020 11:48:04 UTC
Ah. XMLHttpRequest changes the responseURL property after following redirects - https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL - so we can at least get some sort of hacky attempt if we need to add headers when the request is redirected. Check for a 4XX, check that the URL is different, re-request. :) Since you mentioned it, looks like `Response.url` changes too, so I _can_ use fetch for this redirect hack. Thanks! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/601#issuecomment-614602992
Received on Thursday, 16 April 2020 11:48:04 UTC