request@2.40.0

Closes #5926, all tests pass.