mirror of
https://github.com/gin-gonic/gin.git
synced 2025-05-22 12:19:16 +08:00
Merge 6c7a318468ce708b91c1afbf4a32e493d65fab22 into ef68fa032c0e6ce637db56e89ec734c0de0a9f5e
This commit is contained in:
commit
c479bc18ff
4
gin.go
4
gin.go
@ -663,8 +663,8 @@ func (engine *Engine) handleHTTPRequest(c *Context) {
|
||||
httpMethod := c.Request.Method
|
||||
rPath := c.Request.URL.Path
|
||||
unescape := false
|
||||
if engine.UseRawPath && len(c.Request.URL.RawPath) > 0 {
|
||||
rPath = c.Request.URL.RawPath
|
||||
if engine.UseRawPath {
|
||||
rPath = c.Request.URL.EscapedPath()
|
||||
unescape = engine.UnescapePathValues
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user