From 4cee0048f5af60850319c9fa83811ea0aca3fbf2 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Thu, 14 Nov 2019 17:37:10 +0100 Subject: [PATCH] Fixing wrong URL arguments --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.ts b/src/connection.ts index 12e2854..49b2776 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -53,7 +53,7 @@ export class ConnectionManager { const session = new Session(nanoid()); - const query = new URL(req.url).searchParams; + const query = new URL(req.url, "http://localhost").searchParams; const database = query.get("database"); const db = DatabaseManager.getDatabase(database);