Skip to content

Commit

Permalink
Close requests.Session after use (fixes pyopenapi#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed May 24, 2020
1 parent 333c4ca commit 80a313d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyswagger/contrib/client/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 80a313d

Please sign in to comment.