- From: Jake Archibald <notifications@github.com>
- Date: Mon, 01 Feb 2016 11:19:33 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/194/r51465810@github.com>
> + <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>. ```js event.respondWith(fetch("//static.example.com/foo/", { redirect: 'manual' })) ``` Where: * The request URL is `//example.com/bar/` * Request has a manual redirect mode * `//static.example.com/foo/` redirects to `/bar/` This would result in redirecting to `//example.com/bar/` rather than `//static.example.com/bar/` right? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/194/files#r51465810
Received on Monday, 1 February 2016 19:20:17 UTC