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 }