Skip to content
Permalink
Browse files

Fix #187: set body to null when method is set to `GET` in a redirect

  • Loading branch information...
annevk committed Jan 4, 2016
1 parent dd58f38 commit 379daf2b451b026f5fe2012da2f6e01ceccb3b58
Showing with 15 additions and 7 deletions.
  1. +8 −4 Overview.html
  2. +7 −3 Overview.src.html
@@ -7,7 +7,7 @@

<p><a class="logo" href="https://whatwg.org/"><img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-fetch.svg" width="100"></a>
<h1 id="cors">Fetch</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-16-december-2015">Living Standard — Last Updated 16 December 2015</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-4-january-2016">Living Standard — Last Updated 4 January 2016</h2>

<dl>
<dt>Participate:
@@ -529,8 +529,8 @@ <h4 id="requests"><span class="secno">3.1.5 </span>Requests</h4>
<a href="#concept-method" title="concept-method">method</a>). Unless stated otherwise it is
`<code title="">GET</code>`.

<p class="note no-backref">This can be updated during redirects to
`<code title="">GET</code>` as described in <a href="#concept-http-fetch" title="concept-http-fetch">HTTP fetch</a>.
<p class="note no-backref">This can be updated during redirects to `<code title="">GET</code>` as
described in <a href="#concept-http-fetch" title="concept-http-fetch">HTTP fetch</a>.

<p>A <a href="#concept-request" title="concept-request">request</a> has an associated
<dfn id="concept-request-url" title="concept-request-url">url</dfn> (a <a href="#fetch-url">fetch URL</a>).
@@ -561,6 +561,9 @@ <h4 id="requests"><span class="secno">3.1.5 </span>Requests</h4>
<dfn id="concept-request-body" title="concept-request-body">body</dfn> (null or a
<a href="#concept-body" title="concept-body">body</a>). Unless stated otherwise it is null.

<p class="note no-backref">This can be updated during redirects to null as described in
<a href="#concept-http-fetch" title="concept-http-fetch">HTTP fetch</a>.

<hr>

<p>A <a href="#concept-request" title="concept-request">request</a> has an associated
@@ -2328,7 +2331,8 @@ <h3 id="http-fetch"><span class="secno">5.3 </span>HTTP fetch</h3>
<a href="#concept-request-method" title="concept-request-method">method</a> is `<code title="">POST</code>`, or
<var>actualResponse</var>'s <a href="#concept-response-status" title="concept-response-status">status</a> is
<code title="">303</code>, set <var>request</var>'s
<a href="#concept-request-method" title="concept-request-method">method</a> to `<code title="">GET</code>`.
<a href="#concept-request-method" title="concept-request-method">method</a> to `<code title="">GET</code>` and
<var>request</var>'s <a href="#concept-request-body" title="concept-request-body">body</a> to null.

<li><p>Append <var>locationURL</var> to <var>request</var>'s
<a href="#concept-request-url-list" title="concept-request-url-list">url list</a>.
@@ -468,8 +468,8 @@ <h4>Requests</h4>
<span title=concept-method>method</span>). Unless stated otherwise it is
`<code title>GET</code>`.

<p class="note no-backref">This can be updated during redirects to
`<code title>GET</code>` as described in <span title=concept-http-fetch>HTTP fetch</span>.
<p class="note no-backref">This can be updated during redirects to `<code title>GET</code>` as
described in <span title=concept-http-fetch>HTTP fetch</span>.

<p>A <span title=concept-request>request</span> has an associated
<dfn title=concept-request-url>url</dfn> (a <span>fetch URL</span>).
@@ -500,6 +500,9 @@ <h4>Requests</h4>
<dfn title=concept-request-body>body</dfn> (null or a
<span title=concept-body>body</span>). Unless stated otherwise it is null.

<p class="note no-backref">This can be updated during redirects to null as described in
<span title=concept-http-fetch>HTTP fetch</span>.

<hr>

<p>A <span title=concept-request>request</span> has an associated
@@ -2267,7 +2270,8 @@ <h3>HTTP fetch</h3>
<span title=concept-request-method>method</span> is `<code title>POST</code>`, or
<var>actualResponse</var>'s <span title=concept-response-status>status</span> is
<code title>303</code>, set <var>request</var>'s
<span title=concept-request-method>method</span> to `<code title>GET</code>`.
<span title=concept-request-method>method</span> to `<code title>GET</code>` and
<var>request</var>'s <span title=concept-request-body>body</span> to null.

<li><p>Append <var>locationURL</var> to <var>request</var>'s
<span title=concept-request-url-list>url list</span>.

0 comments on commit 379daf2

Please sign in to comment.
You can’t perform that action at this time.