Merge branch 'hotfix/label' into 'main'

修复策略check时,path匹配和方法匹配失效bug

See merge request goku/apinto!234
This commit is contained in:
刘健
2023-03-17 16:51:54 +08:00
3 changed files with 11 additions and 2 deletions

View File

@@ -66,6 +66,8 @@ func (h *httpHandler) ServeHTTP(ctx eocontext.EoContext) {
ctx.SetLabel("service_id", h.service.Id())
}
ctx.SetLabel("method", httpContext.Request().Method())
ctx.SetLabel("path", httpContext.Request().URI().RequestURI())
ctx.SetLabel("ip", httpContext.Request().ReadIP())
ctx.SetCompleteHandler(h.completeHandler)