Updates for requests >= 1.0 (bug 861420)