customerio-python
customerio-python copied to clipboard
Ensure requests.Session is not shared between threads
Per psf/requests/issues/2766 requests.Session is likely not threadsafe.
This change puts the session in a thread local so that each thread has a different copy.