mirror of
https://github.com/eolinker/apinto
synced 2025-11-02 21:04:01 +08:00
Merge branch 'hotfix/label' into 'main'
修复策略check时,path匹配和方法匹配失效bug See merge request goku/apinto!234
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user