Skip to content

Commit

Permalink
Do not reset override MIME type
Browse files Browse the repository at this point in the history
It does not make much sense as overrideMimeType() isn't blocked from being used before open() is invoked. (And 3/4 of the major implementations do not have this behavior.)

Partially reverts 121cee5.

Tests: web-platform-tests/wpt#12404.

Closes web-platform-tests/wpt#12289.
  • Loading branch information
annevk authored Oct 1, 2018
1 parent 34250d3 commit 7d8526b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xhr.bs
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,11 @@ methods, when invoked, must run these steps:
<a>network error</a>.
<li><p>Set <a>received bytes</a> to the empty byte sequence.
<li><p>Set <a>response object</a> to null.
<li><p>Set <a>override MIME type</a> to null.
</ul>

<p class=note><a>Override MIME type</a> is not overridden here as the
<code>overrideMimeType()</code> method can be invoked before the <code>open()</code> method.

<li>
<p>If the <a>state</a> is not
<i>opened</i>, run these substeps:
Expand Down Expand Up @@ -670,10 +672,8 @@ object has an associated {{XMLHttpRequestUpload}} object.
<dl class=domintro>
<dt><code><var>client</var> . <a method for=XMLHttpRequest lt="send(body)">send([<var>body</var> = null])</a></code>
<dd>
<p>Initiates the request. The optional argument provides the
<a>request body</a>. The argument is ignored if
<a>request method</a> is <code>GET</code> or
<code>HEAD</code>.
<p>Initiates the request. The <var>body</var> argument provides the <a>request body</a>, if any,
and is ignored if the <a>request method</a> is <code>GET</code> or <code>HEAD</code>.

<p>Throws an "{{InvalidStateError!!exception}}" {{DOMException}} if either <a>state</a> is not
<i>opened</i> or the <a><code>send()</code> flag</a> is set.
Expand Down

0 comments on commit 7d8526b

Please sign in to comment.