mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-25 03:12:16 +08:00
use := var
This commit is contained in:
parent
11ade5a163
commit
d748f97cf1
7
gin.go
7
gin.go
@ -316,11 +316,8 @@ func (engine *Engine) HandleContext(c *Context) {
|
|||||||
|
|
||||||
func (engine *Engine) handleHTTPRequest(context *Context) {
|
func (engine *Engine) handleHTTPRequest(context *Context) {
|
||||||
httpMethod := context.Request.Method
|
httpMethod := context.Request.Method
|
||||||
var path string
|
path := context.Request.URL.Path
|
||||||
var unescape bool
|
unescape := false
|
||||||
|
|
||||||
path = context.Request.URL.Path
|
|
||||||
unescape = false
|
|
||||||
if engine.UseRawPath && len(context.Request.URL.RawPath) > 0 {
|
if engine.UseRawPath && len(context.Request.URL.RawPath) > 0 {
|
||||||
path = context.Request.URL.RawPath
|
path = context.Request.URL.RawPath
|
||||||
unescape = engine.UnescapePathValues
|
unescape = engine.UnescapePathValues
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user