From a9e03750abd3763e70b5a6549267566be2241e0c Mon Sep 17 00:00:00 2001 From: DeniskaRediska Date: Fri, 25 Oct 2019 11:50:33 +0300 Subject: [PATCH] up version --- .version | 2 +- authenticate/authenticate.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.version b/.version index 5c4511c..afaf360 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.0.7 \ No newline at end of file +1.0.0 \ No newline at end of file diff --git a/authenticate/authenticate.go b/authenticate/authenticate.go index 334d729..d3251f8 100644 --- a/authenticate/authenticate.go +++ b/authenticate/authenticate.go @@ -77,10 +77,10 @@ func Do(ctx *fasthttp.RequestCtx) error { func getPathWithoutPrefix(path []byte) []byte { firstFound := false - for key, value := range path { + for i, value := range path { if value == '/' { if firstFound { - return path[key+1:] + return path[i+1:] } else { firstFound = true }