From 276268f1becdc94a88d2da183de663e9aca374d6 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 24 May 2018 16:00:31 +0200 Subject: [PATCH] fix root controller (named /i.so) --- request_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_builder.go b/request_builder.go index dc4ff63..117c368 100644 --- a/request_builder.go +++ b/request_builder.go @@ -66,7 +66,7 @@ func NormaliseUri(uri string) string { uri = uri[1:] } - if uri[len(uri)-1] == '/' { + if len(uri) > 1 && uri[len(uri)-1] == '/' { uri = uri[0 : len(uri)-1] }