Skip to content

Commit

Permalink
Update request.py
Browse files Browse the repository at this point in the history
Fix response does not close after use
  • Loading branch information
Zoupers authored Apr 18, 2024
1 parent 4274991 commit f88d3f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/larksuiteoapi/api/request/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def parse_response(self): # type: () -> None
return

resp_json = self.req.response.json()
self.req.response.close()
self.config.logger.debug("request http_path:%s, response status code:%d, response body:%s" % (
self.req.http_path, self.req.response.status_code, resp_json))
if isinstance(resp_json, dict):
Expand Down

0 comments on commit f88d3f5

Please sign in to comment.