Re: [fetch] Introduce HTTP-redirect fetch (#194)

> + <span title=concept-filtered-response>filtered response</span>, and <var>response</var>'s
> + <span title=concept-internal-response>internal response</span> otherwise.
> +
> + <li><p>Let <var>location</var> be the result of <span title=concept-header-parse>parsing</span>
> + `<code title>Location</code>` in <var>actualResponse</var>'s
> + <span title=concept-response-header-list>header list</span>.
> +
> + <li><p>If <var>location</var> is null, return <var>response</var>.
> +
> + <li><p>If <var>location</var> is failure, return a
> + <span title=concept-network-error>network error</span>.
> + <!-- only Gecko does this; and even that is currently more complicated -->
> +
> + <li><p>Let <var>locationURL</var> be the result of
> + <span data-anolis-spec=url title=concept-url-parser>parsing</span> <var>location</var> with
> + <var>request</var>'s <span title=concept-request-current-url>current url</span>.

If we change the document's base URL to be based on the response url, I imagine we'd change this to resolve location against the the response URL too.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/194/files#r51456250

Received on Monday, 1 February 2016 18:15:16 UTC