Testing uncommon HTTP methods fails (like options)

Hello everyone,

Could someone check this PR?

https://github.com/rails/rails/pull/14071

This affects both Rails and Rspec tests that use methods that are not
defined at the integration session api (like options).