Fixes for requests 1.0