Re: [whatwg/fetch] Location header is the empty string (#669)

I think the URL parsing there is incorrect. The URL parser takes two parameters: _input_ and _base_. It is called with two arguments by Fetch: _location_ and _actualResponse_'s url. So you should parse the empty string relative to the base URL given by the response URL. So you get the response URL as the resulting returned URL (= _url_ inside the algorithm).

Of course by that reading I think we end up with an infinite redirect loop to itself, at least until the 20-redirect-limit is hit. So that seems like a spec bug too.

-- 
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/669#issuecomment-364466896

Received on Friday, 9 February 2018 15:33:47 UTC