bug: url / will be empty
This commit is contained in:
parent
ff3d33d5e0
commit
28c31359bf
|
@ -270,7 +270,7 @@ class Sanic:
|
|||
'Endpoint with name `{}` was not found'.format(
|
||||
view_name))
|
||||
|
||||
if uri.endswith('/'):
|
||||
if uri != '/' and uri.endswith('/'):
|
||||
uri = uri[:-1]
|
||||
|
||||
out = uri
|
||||
|
|
Loading…
Reference in New Issue
Block a user