all repos — homestead @ 640a4df49eaa77c1fe2379eb2bb3b4744babc492

Code for 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

640a4df49eaa77c1fe2379eb2bb3b4744babc492

parent

2d21917028ebd2af0f1411a7c95de7aa007e0cfa

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

jump to
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 {