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

Oh, I think I misunderstood part from OP, but I also think you might have misunderstood Fetch. In particular https://fetch.spec.whatwg.org/#concept-http-fetch does call into service workers so step 6 there deals with both network and service worker responses alike. I don't think Fetch has a way to return a response where location URL would not be set if the response has a redirect status. Does that makes sense?

How exactly `Location` headers are turned into a location URL is something that is probably best tackled separately. It's unfortunate if we have to treat separate headers differently from values containing commas, especially in the face of naïvely combining middleware, but there's probably no way around that at this point.

-- 
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-769618653

Received on Friday, 29 January 2021 06:58:15 UTC