mirror of
https://github.com/eolinker/apinto
synced 2025-10-05 16:57:03 +08:00
修复获取目标地址IP失败导致程序崩溃的问题
This commit is contained in:
@@ -104,7 +104,9 @@ func (e *executor) DoHttpFilter(ctx http_service.IHttpContext, next eocontext.IC
|
||||
ctx.SetLabel("file_name", h.Filename)
|
||||
ctx.SetLabel("file_suffix", suffix)
|
||||
ctx.WithValue("file_size", h.Size)
|
||||
|
||||
if h.Size > e.largeWarn {
|
||||
ctx.SetLabel("file_size_warn", e.largeWarnStr)
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user