1 parent
2092fae819
commit
ed220996a7
2 files changed
+12
-2
No files matched your search
@@ -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