apply fix for kennethreitz/requests#1887