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] }