From 4a620d46d5f922cf168c66d37a7b5cc1b8c3dc31 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 16 Oct 2023 10:04:30 +0800 Subject: [PATCH] fix --- utils/curl/http_curl.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/curl/http_curl.go b/utils/curl/http_curl.go index e704569d..aa87c095 100644 --- a/utils/curl/http_curl.go +++ b/utils/curl/http_curl.go @@ -67,6 +67,10 @@ func ApiCall2(url, method string, header map[string]string, body io.Reader, time for { line, _, err := reader.ReadLine() if err == io.EOF { + _, err = buff.Write(line) + if err != nil { + return nil, err + } break } if err != nil {