Skip to content

Commit

Permalink
Merge pull request #26 from gopaycommunity/22-unlimited-timeout-in-py…
Browse files Browse the repository at this point in the history
…thon-requests-causes-library-to-wait-for-requests-forever

fix: Set requests timeout
  • Loading branch information
geeshta authored Aug 26, 2024
2 parents 8d527fe + 84fd8ce commit a22143e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gopay/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def send_request(self, request: Request) -> Response:
auth=(self.client_id, self.client_secret) if request.basic_auth else None,
data=request.body if request.content_type == ContentType.FORM else None,
json=request.body if request.content_type == ContentType.JSON else None,
timeout=300
)

# Build Response instance, try to decode body as JSON
Expand Down

0 comments on commit a22143e

Please sign in to comment.