up version
This commit is contained in:
1 parent
0edf80ffed
commit
a9e03750ab
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user