From e9a2d9ef430d009c5fb3a537bf27daba2d653cfb Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sun, 1 Oct 2017 09:51:40 +0200 Subject: [PATCH] Handle whitespace-only strings in short requests --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 54c61b0..295b11f 100644 --- a/main.py +++ b/main.py @@ -21,6 +21,7 @@ def application(env, re): cto = None split = env["PATH_INFO"].split("/") + split = [i.strip() for i in split] while "" in split: split.remove("")