use := var

This commit is contained in:
thinkerou 2017-08-25 05:54:01 +08:00
parent 11ade5a163
commit d748f97cf1

7
gin.go
View File

@ -316,11 +316,8 @@ func (engine *Engine) HandleContext(c *Context) {
func (engine *Engine) handleHTTPRequest(context *Context) {
httpMethod := context.Request.Method
var path string
var unescape bool
path = context.Request.URL.Path
unescape = false
path := context.Request.URL.Path
unescape := false
if engine.UseRawPath && len(context.Request.URL.RawPath) > 0 {
path = context.Request.URL.RawPath
unescape = engine.UnescapePathValues