all repos — website @ 5af5222423ffd84341145b1ef8c68abcdaba8d92

My website

Fix content-encoding check The files named `index.html.br` failed this check and would later not be found, falling back to the default identity encoding

Alan Pearce
commit

5af5222423ffd84341145b1ef8c68abcdaba8d92

parent

1e10a92d6b87ab5327242ce996f2a8ca4b45fb15

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M src/app.tssrc/app.ts
@@ -87,7 +87,7 @@ for (let relPath of await fs.readdir(root, { recursive: true })) {
const absPath = path.join(root, relPath); const stat = await fs.stat(absPath); if (stat.isFile()) { - if (relPath.endsWith("index.html")) { + if (relPath.includes("index.html")) { const dir = relPath.replace("index.html", ""); registerFile(relPath, dir, absPath, stat); } else {