From 7e92d054337eec6a7983e408c88eb540c4b71452 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 1 Oct 2017 00:30:07 -0400 Subject: [PATCH] Allow spaces in deck names --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 6114686..80c09eb 100644 --- a/server.js +++ b/server.js @@ -58,11 +58,11 @@ const server = http.createServer((req, res) => { break; case 'deck': if (pathParts.length === 3) { - let deckName = pathParts[2]; + let deckName = decodeURI(pathParts[2]); sendDeckIndex(res, deckName); } else if (pathParts.length === 4) { - let deckName = pathParts[2]; + let deckName = decodeURI(pathParts[2]); switch (pathParts[3]) { case 'play': sendPlayfield(res, deckName);