fix root controller (named /i.so)

This commit is contained in:
Adrien Marquès 2018-05-24 16:00:31 +02:00
parent a777de0096
commit 276268f1be
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func NormaliseUri(uri string) string {
uri = uri[1:] uri = uri[1:]
} }
if uri[len(uri)-1] == '/' { if len(uri) > 1 && uri[len(uri)-1] == '/' {
uri = uri[0 : len(uri)-1] uri = uri[0 : len(uri)-1]
} }