Selaa lähdekoodia

URLs with no trailing slash are accepted

boyska 6 vuotta sitten
vanhempi
commit
e70f0d22ad
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      bandcavall/main.py

+ 1 - 1
bandcavall/main.py

@@ -45,7 +45,7 @@ def get_mode(url):
         return 'track'
     if path.startswith('/album/'):
         return 'album'
-    if path == '/':
+    if path == '/' or path == '':
         return 'artist'
     raise ValueError('unsupported url: "{}"'.format(path))