mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
d119b3bbfa
commit
c00d017178
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user