Make compatible with requests 1.0.