Support for requests >= 1.0.0