FIX: Recent regression meant we were proxying qunit when we shouldn't (#12860)

This commit is contained in:
Robin Ward
2021-04-27 14:40:17 -04:00
committed by GitHub
parent b6aacc4c2d
commit 42251e2fe6

View File

@@ -161,6 +161,10 @@ function buildFromBootstrap(assetPath, proxy, req) {
}
async function handleRequest(assetPath, proxy, req, res) {
if (assetPath.endsWith("tests/index.html")) {
return;
}
if (assetPath.endsWith("index.html")) {
try {
// Avoid Ember CLI's proxy if doing a GET, since Discourse depends on some non-XHR