DEV: Fix ember CLI bootstrap logic (#15160)
When1fa7a87f
was rebased onto `main`, it didn't take into account the recent changes inc0781d7d
. This commit updates the logic to work properly.
This commit is contained in:
parent
df6e8b924e
commit
abe30a17da
|
@ -264,7 +264,7 @@ async function handleRequest(proxy, baseURL, req, res) {
|
|||
res.set("content-security-policy", newCSP);
|
||||
}
|
||||
|
||||
const isHTML = response.headers["content-type"]?.startsWith("text/html");
|
||||
const isHTML = response.headers.get("content-type")?.startsWith("text/html");
|
||||
const responseText = await response.text();
|
||||
const preload = isHTML ? extractPreloadJson(responseText) : null;
|
||||
|
||||
|
|
Loading…
Reference in New Issue