about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2023-09-12 18:33:47 +0200
committerAlan Pearce2023-09-12 18:33:47 +0200
commitd4c067d0baff81a308c01ea62a900075b0326b7d (patch)
tree8cef4baa4cc2002f0e19cec8b96fd1c096e062df /src
parent14e6b232704e9358a2df181b2db0858f794f67de (diff)
downloadwebsite-d4c067d0baff81a308c01ea62a900075b0326b7d.tar.lz
website-d4c067d0baff81a308c01ea62a900075b0326b7d.tar.zst
website-d4c067d0baff81a308c01ea62a900075b0326b7d.zip
Rename variable
Diffstat (limited to 'src')
-rw-r--r--src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts
index e524527..27af7a7 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -26,14 +26,14 @@ type File = {
 
 let files = new Map<string, File>();
 
-function registerFile(pathname: string, absPath: string, stat: Stats): void {
+function registerFile(pathname: string, filename: string, stat: Stats): void {
   pathname = "/" + (pathname === "." || pathname === "./" ? "" : pathname);
 
   if (files.get(pathname) !== undefined) {
     console.warn("File already registered:", pathname);
   }
   files.set(pathname, {
-    filename: absPath,
+    filename,
     headers:
       pathname === "/404.html"
         ? Object.assign({}, defaultHeaders, { "cache-control": "no-cache" })