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