Browse Source

URLs with no trailing slash are accepted

boyska 6 năm trước cách đây
mục cha
commit
e70f0d22ad
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))