This commit is contained in:
@@ -19,6 +19,7 @@ func UploadDataToServer(httpClient *http.Client, data string) error {
|
||||
}
|
||||
if resp != nil {
|
||||
_, _ = io.Copy(io.Discard, resp.Body)
|
||||
resp.Body.Close()
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user