From e7e450f7cf04db569591ba4edc4efc5710145b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Tue, 13 Jan 2026 11:20:14 +0800 Subject: [PATCH] =?UTF-8?q?ragflow=20http=E8=AF=B7=E6=B1=82=20header?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/http.go | 1 + ragflow/client.go | 1 + 2 files changed, 2 insertions(+) diff --git a/http/http.go b/http/http.go index 8f6f8af..a63eb8a 100644 --- a/http/http.go +++ b/http/http.go @@ -74,6 +74,7 @@ func doRequest(ctx context.Context, method string, url string, headers map[strin defer response.Close() result := response.ReadAll() resultStrut := &ghttp.DefaultHandlerResponse{} + gconv.Struct(result, &resultStrut) if resultStrut.Code == 200 || resultStrut.Code == 0 { gconv.Struct(resultStrut.Data, target) diff --git a/ragflow/client.go b/ragflow/client.go index 91601ad..2fb04fe 100644 --- a/ragflow/client.go +++ b/ragflow/client.go @@ -139,6 +139,7 @@ func (c *Client) request(ctx context.Context, method, path string, body interfac if endpoint == "" { return gerror.New("RAGFlow endpoints not configured") } + fullURL := endpoint + path // 添加详细日志:请求信息