DEV: Fix another form of sending data in ember-cli (#15079)

DEV: Fix another form of sending data in ember-cli (#15079)

diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index 1938ddc..23e401e 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -317,16 +317,15 @@ to serve API requests. For example:
       return true;
     }
 
-    if (
-      request.get("Content-Type") &&
-      request.get("Content-Type").includes("application/x-www-form-urlencoded")
-    ) {
-      return true;
+    const contentType = request.get("Content-Type");
+    if (!contentType) {
+      return false;
     }
 
     if (
-      request.get("Content-Type") &&
-      request.get("Content-Type").includes("multipart/form-data")
+      contentType.includes("application/x-www-form-urlencoded") ||
+      contentType.includes("multipart/form-data") ||
+      contentType.includes("application/json")
     ) {
       return true;
     }

GitHub sha: 9380c1273edd2f13434fadc2c9e853b5fa2881fa

This commit appears in #15079 which was approved by eviltrout. It was merged by CvX.