mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-26 03:52:12 +02:00
fix url rawPath
This commit is contained in:
parent
9d67573417
commit
839a3b734e
@ -245,8 +245,8 @@ func (engine *Engine) prepareHandler(c *Context) {
|
|||||||
httpMethod := c.Request.Method
|
httpMethod := c.Request.Method
|
||||||
rPath := c.Request.URL.Path
|
rPath := c.Request.URL.Path
|
||||||
unescape := false
|
unescape := false
|
||||||
if engine.UseRawPath && len(c.Request.URL.RawPath) > 0 {
|
if engine.UseRawPath && len(c.Request.URL.EscapedPath()) > 0 {
|
||||||
rPath = c.Request.URL.RawPath
|
rPath = c.Request.URL.EscapedPath()
|
||||||
unescape = engine.UnescapePathValues
|
unescape = engine.UnescapePathValues
|
||||||
}
|
}
|
||||||
rPath = cleanPath(rPath)
|
rPath = cleanPath(rPath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user