The response object contains a .request property, which you can use to examine the request that was actually sent.
https://requests.readthedocs.io/en/latest/api/#requests.Response.request
Comparing these between versions should help you discover where the issue is coming from.