Re: [whatwg/fetch] Script-created redirects responses have no location URL (#1146)

Oh huh. I missed that was a thing. In that case, we potentially don't even need a notion of location URL? We could just say that HTTP-redirect fetch does:

* base URL = response's URL if it exists, otherwise request's URL (URL list??)
* Resolve Location header

(Although Chromium's lower-level net stack bits already surface out a pre-resolved redirect URL. A lot of fixing the location URL handling was preserving that up a few more layers, rather than dropping and recomputing it. *shrug*)

-- 
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/1146#issuecomment-767801173

Received on Tuesday, 26 January 2021 20:17:05 UTC