diff --git a/pyswagger/contrib/client/requests.py b/pyswagger/contrib/client/requests.py index a7bce1d..dcdff89 100644 --- a/pyswagger/contrib/client/requests.py +++ b/pyswagger/contrib/client/requests.py @@ -67,6 +67,7 @@ def append(name, obj): ) rq = self.__s.prepare_request(rq) rs = self.__s.send(rq, stream=True, **self.__send_opt) + self.__s.close() resp.apply_with( status=rs.status_code,