Upgrade request dependency to 2.40.0.