Fix bug with some versions of python-requests.