From 75e79779e9d22e98b05215ac0c2b26d5e3007908 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 11 May 2022 14:38:43 +0200 Subject: [PATCH] Editorial: use fetch's new "body with type" --- xhr.bs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xhr.bs b/xhr.bs index 565f587..3de11f2 100644 --- a/xhr.bs +++ b/xhr.bs @@ -685,8 +685,20 @@ return this's cross-origin credentials. body, serialized, converted, and UTF-8 encoded. -
  • Otherwise, set this's request body and extractedContentType to - the result of safely extracting body. +

  • +

    Otherwise: + +

      +
    1. Let bodyWithType be the result of + safely extracting body. + +

    2. Set this's request body to bodyWithType's + body. + +

    3. Set extractedContentType to bodyWithType's + type. +

    +
  • Let originalAuthorContentType be the result of getting `Content-Type` from this's author request headers.