about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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" })