Skip to content

Commit

Permalink
Fix internal request path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
sholladay committed Mar 14, 2021
1 parent e7ad01f commit dc994df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit dc994df

Please sign in to comment.