mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
Merge ea3669ea6e027edd416e95b5fabd3d5da894113e into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d
This commit is contained in:
commit
7ff0284ccb
2
path.go
2
path.go
@ -115,7 +115,7 @@ func cleanPath(p string) string {
|
|||||||
|
|
||||||
// If the original string was not modified (or only shortened at the end),
|
// If the original string was not modified (or only shortened at the end),
|
||||||
// return the respective substring of the original string.
|
// return the respective substring of the original string.
|
||||||
// Otherwise return a new string from the buffer.
|
// Otherwise, return a new string from the buffer.
|
||||||
if len(buf) == 0 {
|
if len(buf) == 0 {
|
||||||
return p[:w]
|
return p[:w]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user