This ensures that the version checking happens. Previously, if you did `hook_into :faraday` but were on an older version that doesn't support the middleware `lock!` API, the middleware would never be loaded and the version checking would never take place.
Removing it was premature, apparently. I got a bunch of random cuke failures on travis all of a sudden.
The standard port only needs to be stripped during recording; for playback, it will have already been stripped. This allows people to use the `filter_sensitive_data` option in a way that changes the URI; before this change, doing so resulted in `URI::InvalidURIError`. Closes #137.
/home/vagrant/builds/myronmarston/vcr/spec/quality_spec.rb:6: warning: setting Encoding.default_external
…g when that fails.
This is needed for the preserve_exact_body_bytes hook.
This provides additional flexibility; the user may want to check the encoding specified in an HTTP header. Also, I'm passing the current cassette as an optional yielded param as well.