Workaround for kennethreitz/requests#1144