Edge/IE fail to set Content-Type header on XHR whose body is a typed Blob

Issue #6047383 • Assigned to Divya G.


Jan 4, 2016
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

  1. Create a new XmlHttpRequest, req, with method ‘POST’
  2. Create a new Blob with new Blob(['abc123'], {type: 'text/plain'});
  3. Send the request with the blob as the body. req.send(blob);
  4. Inspect the request in the dev tools network tab.

Expected: The request should have a Content-Type header whose value is 'text/plain’, matching the Blob’s type.
Actual: The request does not have a Content-Type header.

Expected Results:

The HTTP request should include a Content-Type header whose value is set to the type of the Blob.

This expectation is described by the XMLHttpRequest Level 1 spec at http://www.w3.org/TR/XMLHttpRequest/#the-send()-method (see step 4), and by the XMLHttpRequest Living Standard at https://xhr.spec.whatwg.org/#the-send()-method (see step 4, which links to https://fetch.spec.whatwg.org/#concept-bodyinit-extract). Chrome, Safari, and Firefox appear to comply with the spec.

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Divya G.”

      Changed Assigned To from “Divya G.” to “James M.”

      Changed Assigned To from “James M.” to “Divya G.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in