mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-07 19:21:13 +08:00
Compare commits
3 Commits
5622ff9da4
...
69de1a7fe7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69de1a7fe7 | ||
|
|
6c7a318468 | ||
|
|
bf6728e53b |
4
gin.go
4
gin.go
@ -689,8 +689,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