mixpanel / mixpanel-python

Official Mixpanel Python library.
https://mixpanel.com/help/reference/python
Other
102 stars 85 forks source link

Fix connection reset error on long sessions #123

Closed dror-fs closed 6 months ago

dror-fs commented 10 months ago

Fix issue of connection reset error.

HTTPAdatper created that allows retrying POST requests is mounted onto requests.Session using the 'http' prefix. This prefix is always superseded by already existing 'https://' which re-raises on POST and fails the request.

dror-fs commented 7 months ago

@trobertsonsf Thank you for the approval. Can you merge the PR?