Updating to request@2.40.0

See mikeal/request#993

Fixes #1933
Merge remote-tracking branch 'upstream/dev-master' into dev-master