diff --git a/context.go b/context.go index c720de3..540e27f 100644 --- a/context.go +++ b/context.go @@ -869,7 +869,7 @@ func (c *Context) GetErrors() []error { // // Deprecated: 使用 HTTPC() 替代,新方法会自动关联请求 Context func (c *Context) Client() *httpc.Client { - return c.HTTPClient + return c.engine.HTTPClient } // HTTPC 返回自动关联请求 Context 的 HTTP 客户端