This commit is contained in:
laodaming 2023-10-16 10:04:30 +08:00
parent 23b2eded5a
commit 4a620d46d5

View File

@ -67,6 +67,10 @@ func ApiCall2(url, method string, header map[string]string, body io.Reader, time
for { for {
line, _, err := reader.ReadLine() line, _, err := reader.ReadLine()
if err == io.EOF { if err == io.EOF {
_, err = buff.Write(line)
if err != nil {
return nil, err
}
break break
} }
if err != nil { if err != nil {