ragflow http请求 header处理
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user