mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 19:07:06 +00:00
Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md
Former-commit-id: 4f8b8c95c1b107a9be3b1ef6835ece949a75ceb6
This commit is contained in:
@@ -73,7 +73,7 @@ func joinPath(path1 string, path2 string) string {
|
||||
// cleanPath applies the following rules
|
||||
// iteratively until no further processing can be done:
|
||||
//
|
||||
// 1. Replace multiple slashes with a single slash.
|
||||
// 1. Replace multiple slashes with a single slash.
|
||||
// 2. Replace '\' with '/'
|
||||
// 3. Replace "\\" with '/'
|
||||
// 4. Ignore anything inside '{' and '}'
|
||||
@@ -87,7 +87,7 @@ func cleanPath(s string) string {
|
||||
return "/"
|
||||
}
|
||||
|
||||
// remove suffix "/".
|
||||
// remove suffix "/", if it's root "/" then it will add it as a prefix below.
|
||||
if lidx := len(s) - 1; s[lidx] == '/' {
|
||||
s = s[:lidx]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user