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

Not reproducible Issue #6047383


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.”

      Changed Assigned To from “Divya G.” to “IE S.”

      Changed Status to “Not reproducible”

    • Hello,

      Thank you for providing this information about the issue. After thorough testing, we are unable to reproduce this problem in Edge. Please test this behavior in our latest insider build 16232.

      Best Wishes,
      The MS Edge Team

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

    Sign in