Fix for the issue https://github.com/kennethreitz/requests/issues/1280