mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-11 05:17:02 +08:00
Compare commits
3 Commits
df68a20f2a
...
67c5ab097b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67c5ab097b | ||
|
|
6c7a318468 | ||
|
|
bf6728e53b |
4
gin.go
4
gin.go
@ -662,8 +662,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