Jacky Zhao
2025-03-31 d6f69e830c15fd7b57a0b82e0505345e915e94ce
quartz/components/scripts/util.ts
@@ -37,6 +37,7 @@
  if (!res.headers.get("content-type")?.startsWith("text/html")) {
    return res
  }
  // reading the body can only be done once, so we need to clone the response
  // to allow the caller to read it if it's was not a redirect
  const text = await res.clone().text()