Adapt to requests >= 1.0

#53