mirror of
https://github.com/labstack/echo.git
synced 2025-07-13 01:30:31 +02:00
@ -13,7 +13,7 @@ type (
|
||||
|
||||
// Path implements `engine.URL#Path` function.
|
||||
func (u *URL) Path() string {
|
||||
return string(u.URI.Path())
|
||||
return string(u.URI.PathOriginal())
|
||||
}
|
||||
|
||||
// SetPath implements `engine.URL#SetPath` function.
|
||||
|
@ -12,7 +12,7 @@ type (
|
||||
|
||||
// Path implements `engine.URL#Path` function.
|
||||
func (u *URL) Path() string {
|
||||
return u.URL.Path
|
||||
return u.URL.EscapedPath()
|
||||
}
|
||||
|
||||
// SetPath implements `engine.URL#SetPath` function.
|
||||
|
Reference in New Issue
Block a user