未验证 提交 596611e3 编写于 作者: Z zhang-wei 提交者: GitHub

fix routeMap bug (#52)

上级 aa3669ff
......@@ -20,6 +20,7 @@
package gin
import (
"fmt"
"strconv"
"sync"
"time"
......@@ -63,10 +64,10 @@ func Middleware(engine *gin.Engine, tracer *go2sky.Tracer) gin.HandlerFunc {
rm[r.Method] = mm
}
mm[r.Handler] = routeInfo{
operationName: c.Request.Host + c.Request.URL.Path,
operationName: fmt.Sprintf("/%s%s", r.Method, r.Path),
}
m.routeMap = rm
}
m.routeMap = rm
})
var operationName string
handlerName := c.HandlerName()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册