Add TODO on closing the connection of the http.Client

Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
pancho horrillo
2019-10-03 16:52:55 +02:00
parent ffa262b2b6
commit 306889c958
+2
View File
@@ -59,5 +59,7 @@ func Request(method string, url string, r io.Reader, w io.Writer) error {
} else {
_, err = io.Copy(w, res.Body)
}
// TODO: close the connection, otherwise we'll have a port leak in the server
return err
}