DEV: Allow using incorrect headers with ember-cli (#15085)

DEV: Allow using incorrect headers with ember-cli (#15085)

Makes it possible to pass-through invalid headers, e.g. Content-Type: multipart/form-data;;

That ability regressed with the latest changes.

diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index 23e401e..4295eeb 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -286,7 +286,7 @@ to serve API requests. For example:
 
     baseURL = rootURL === "" ? "/" : cleanBaseURL(rootURL || baseURL);
 
-    const rawMiddleware = express.raw({ type: "*/*", limit: "100mb" });
+    const rawMiddleware = express.raw({ type: () => true, limit: "100mb" });
 
     app.use(rawMiddleware, async (req, res, next) => {
       try {

GitHub sha: 704974da6ab41cf156f89c9051e49a8f3a44c9c2

This commit appears in #15085 which was approved by blake. It was merged by CvX.