mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-06-13 15:47:38 +08:00
fix: 修复 Client() 返回过时 HTTPClient 的问题
- 将 Client() 从返回 c.HTTPClient 改为返回 c.engine.HTTPClient - 与 HTTPC() 方法保持一致
This commit is contained in:
parent
4f262b2497
commit
e7c7d5e41f
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,7 @@ func (c *Context) GetErrors() []error {
|
||||||
//
|
//
|
||||||
// Deprecated: 使用 HTTPC() 替代,新方法会自动关联请求 Context
|
// Deprecated: 使用 HTTPC() 替代,新方法会自动关联请求 Context
|
||||||
func (c *Context) Client() *httpc.Client {
|
func (c *Context) Client() *httpc.Client {
|
||||||
return c.HTTPClient
|
return c.engine.HTTPClient
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPC 返回自动关联请求 Context 的 HTTP 客户端
|
// HTTPC 返回自动关联请求 Context 的 HTTP 客户端
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue