From dc994dff99e0111523c7fe0e5cbecb5ec481ca3c Mon Sep 17 00:00:00 2001 From: Seth Holladay Date: Sun, 14 Mar 2021 00:13:39 -0500 Subject: [PATCH] Fix internal request path resolution --- lib/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.ts b/lib/server.ts index c04ced6..c11e44e 100644 --- a/lib/server.ts +++ b/lib/server.ts @@ -22,7 +22,7 @@ import Router, { import { RouteHandler, RouteOptions, ServerOptions } from './types.ts'; const getPathname = (path: string): string => { - return new URL(path, 'about:blank').pathname; + return new URL(path, 'invalid:/').pathname; }; /**