Compare commits

..

No commits in common. "f6c38689c6b8d46b83bd31393cb2474cf68d9012" and "cc7e7bcea9fbbc0690a5d76b29b25dd9851f5576" have entirely different histories.

3 changed files with 2 additions and 17 deletions

View File

@ -473,7 +473,7 @@ module Faraday
if url && !base.path.end_with?('/')
base.path = "#{base.path}/" # ensure trailing slash
end
url = url.to_s.gsub(':', '%3A') if URI.parse(url.to_s).opaque
url = url.to_s.gsub(':', '%3A') if Utils.URI(url.to_s).opaque
uri = url ? base + url : base
if params
uri.query = params.to_query(params_encoder || options.params_encoder)

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Faraday
VERSION = '2.7.4'
VERSION = '2.7.3'
end

View File

@ -310,21 +310,6 @@ RSpec.describe Faraday::Connection do
expect(uri.to_s).to eq('http://service.com/api/service%3Asearch?limit=400')
end
end
context 'with a custom `default_uri_parser`' do
let(:url) { 'http://httpbingo.org' }
let(:parser) { Addressable::URI }
around do |example|
with_default_uri_parser(parser) do
example.run
end
end
it 'does not raise error' do
expect { conn.build_exclusive_url('/nigiri') }.not_to raise_error
end
end
end
describe '#build_url' do