Handle whitespace-only strings in short requests
This commit is contained in:
parent
03338d2e48
commit
e9a2d9ef43
1 changed files with 1 additions and 0 deletions
1
main.py
1
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("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue