support both requests 0.14.* and 1.*